public final class AnswerRecord extends com.google.protobuf.GeneratedMessageV3 implements AnswerRecordOrBuilder
Answer records are records to manage answer history and feedbacks for
Dialogflow.
Currently, answer record includes:
- human agent assistant article suggestion
- human agent assistant faq article
It doesn't include:
- `DetectIntent` intent matching
- `DetectIntent` knowledge
Answer records are not related to the conversation history in the
Dialogflow Console. A Record is generated even when the end-user disables
conversation history in the console. Records are created when there's a human
agent assistant suggestion generated.
A typical workflow for customers provide feedback to an answer is:
1. For human agent assistant, customers get suggestion via ListSuggestions
API. Together with the answers,
[AnswerRecord.name][google.cloud.dialogflow.v2beta1.AnswerRecord.name] are
returned to the customers.
2. The customer uses the
[AnswerRecord.name][google.cloud.dialogflow.v2beta1.AnswerRecord.name] to
call the
[UpdateAnswerRecord][] method to send feedback about a specific answer
that they believe is wrong.
Protobuf type google.cloud.dialogflow.v2beta1.AnswerRecord| Modifier and Type | Class and Description |
|---|---|
static class |
AnswerRecord.Builder
Answer records are records to manage answer history and feedbacks for
Dialogflow.
|
static class |
AnswerRecord.RecordCase |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
AGENT_ASSISTANT_RECORD_FIELD_NUMBER |
static int |
ANSWER_FEEDBACK_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
AgentAssistantRecord |
getAgentAssistantRecord()
Output only.
|
AgentAssistantRecordOrBuilder |
getAgentAssistantRecordOrBuilder()
Output only.
|
AnswerFeedback |
getAnswerFeedback()
Optional.
|
AnswerFeedbackOrBuilder |
getAnswerFeedbackOrBuilder()
Optional.
|
static AnswerRecord |
getDefaultInstance() |
AnswerRecord |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getName()
The unique identifier of this answer record.
|
com.google.protobuf.ByteString |
getNameBytes()
The unique identifier of this answer record.
|
com.google.protobuf.Parser<AnswerRecord> |
getParserForType() |
AnswerRecord.RecordCase |
getRecordCase() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasAgentAssistantRecord()
Output only.
|
boolean |
hasAnswerFeedback()
Optional.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static AnswerRecord.Builder |
newBuilder() |
static AnswerRecord.Builder |
newBuilder(AnswerRecord prototype) |
AnswerRecord.Builder |
newBuilderForType() |
protected AnswerRecord.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static AnswerRecord |
parseDelimitedFrom(InputStream input) |
static AnswerRecord |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AnswerRecord |
parseFrom(byte[] data) |
static AnswerRecord |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AnswerRecord |
parseFrom(ByteBuffer data) |
static AnswerRecord |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AnswerRecord |
parseFrom(com.google.protobuf.ByteString data) |
static AnswerRecord |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AnswerRecord |
parseFrom(com.google.protobuf.CodedInputStream input) |
static AnswerRecord |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AnswerRecord |
parseFrom(InputStream input) |
static AnswerRecord |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<AnswerRecord> |
parser() |
AnswerRecord.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int ANSWER_FEEDBACK_FIELD_NUMBER
public static final int AGENT_ASSISTANT_RECORD_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public AnswerRecord.RecordCase getRecordCase()
getRecordCase in interface AnswerRecordOrBuilderpublic String getName()
The unique identifier of this answer record. Required for [AnswerRecords.UpdateAnswerRecord][google.cloud.dialogflow.v2beta1.AnswerRecords.UpdateAnswerRecord] method. Format: `projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>`.
string name = 1;getName in interface AnswerRecordOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The unique identifier of this answer record. Required for [AnswerRecords.UpdateAnswerRecord][google.cloud.dialogflow.v2beta1.AnswerRecords.UpdateAnswerRecord] method. Format: `projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>`.
string name = 1;getNameBytes in interface AnswerRecordOrBuilderpublic boolean hasAnswerFeedback()
Optional. The AnswerFeedback for this record. You can set this with [AnswerRecords.UpdateAnswerRecord][google.cloud.dialogflow.v2beta1.AnswerRecords.UpdateAnswerRecord] in order to give us feedback about this answer.
.google.cloud.dialogflow.v2beta1.AnswerFeedback answer_feedback = 3;hasAnswerFeedback in interface AnswerRecordOrBuilderpublic AnswerFeedback getAnswerFeedback()
Optional. The AnswerFeedback for this record. You can set this with [AnswerRecords.UpdateAnswerRecord][google.cloud.dialogflow.v2beta1.AnswerRecords.UpdateAnswerRecord] in order to give us feedback about this answer.
.google.cloud.dialogflow.v2beta1.AnswerFeedback answer_feedback = 3;getAnswerFeedback in interface AnswerRecordOrBuilderpublic AnswerFeedbackOrBuilder getAnswerFeedbackOrBuilder()
Optional. The AnswerFeedback for this record. You can set this with [AnswerRecords.UpdateAnswerRecord][google.cloud.dialogflow.v2beta1.AnswerRecords.UpdateAnswerRecord] in order to give us feedback about this answer.
.google.cloud.dialogflow.v2beta1.AnswerFeedback answer_feedback = 3;getAnswerFeedbackOrBuilder in interface AnswerRecordOrBuilderpublic boolean hasAgentAssistantRecord()
Output only. The record for human agent assistant.
.google.cloud.dialogflow.v2beta1.AgentAssistantRecord agent_assistant_record = 4;hasAgentAssistantRecord in interface AnswerRecordOrBuilderpublic AgentAssistantRecord getAgentAssistantRecord()
Output only. The record for human agent assistant.
.google.cloud.dialogflow.v2beta1.AgentAssistantRecord agent_assistant_record = 4;getAgentAssistantRecord in interface AnswerRecordOrBuilderpublic AgentAssistantRecordOrBuilder getAgentAssistantRecordOrBuilder()
Output only. The record for human agent assistant.
.google.cloud.dialogflow.v2beta1.AgentAssistantRecord agent_assistant_record = 4;getAgentAssistantRecordOrBuilder in interface AnswerRecordOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static AnswerRecord parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AnswerRecord parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AnswerRecord parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AnswerRecord parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AnswerRecord parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AnswerRecord parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AnswerRecord parseFrom(InputStream input) throws IOException
IOExceptionpublic static AnswerRecord parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AnswerRecord parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static AnswerRecord parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AnswerRecord parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static AnswerRecord parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic AnswerRecord.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static AnswerRecord.Builder newBuilder()
public static AnswerRecord.Builder newBuilder(AnswerRecord prototype)
public AnswerRecord.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected AnswerRecord.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static AnswerRecord getDefaultInstance()
public static com.google.protobuf.Parser<AnswerRecord> parser()
public com.google.protobuf.Parser<AnswerRecord> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public AnswerRecord getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.