public static final class AnswerRecord.Builder extends GeneratedMessageV3.Builder<AnswerRecord.Builder> 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
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<AnswerRecord.Builder>
public AnswerRecord.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<AnswerRecord.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<AnswerRecord.Builder>
public AnswerRecord getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public AnswerRecord build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public AnswerRecord buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public AnswerRecord.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<AnswerRecord.Builder>
public AnswerRecord.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<AnswerRecord.Builder>
public AnswerRecord.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<AnswerRecord.Builder>
public AnswerRecord.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<AnswerRecord.Builder>
public AnswerRecord.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<AnswerRecord.Builder>
public AnswerRecord.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<AnswerRecord.Builder>
public AnswerRecord.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<AnswerRecord.Builder>
public AnswerRecord.Builder mergeFrom(AnswerRecord other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<AnswerRecord.Builder>
public AnswerRecord.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<AnswerRecord.Builder>
IOException
public AnswerRecord.RecordCase getRecordCase()
getRecordCase
in interface AnswerRecordOrBuilder
public AnswerRecord.Builder clearRecord()
public 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 AnswerRecordOrBuilder
public 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 AnswerRecordOrBuilder
public AnswerRecord.Builder setName(String value)
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;
value
- The name to set.public AnswerRecord.Builder clearName()
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;
public AnswerRecord.Builder setNameBytes(ByteString value)
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;
value
- The bytes for name to set.public 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 AnswerRecordOrBuilder
public 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 AnswerRecordOrBuilder
public AnswerRecord.Builder setAnswerFeedback(AnswerFeedback value)
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;
public AnswerRecord.Builder setAnswerFeedback(AnswerFeedback.Builder builderForValue)
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;
public AnswerRecord.Builder mergeAnswerFeedback(AnswerFeedback value)
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;
public AnswerRecord.Builder clearAnswerFeedback()
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;
public AnswerFeedback.Builder getAnswerFeedbackBuilder()
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;
public 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 AnswerRecordOrBuilder
public boolean hasAgentAssistantRecord()
Output only. The record for human agent assistant.
.google.cloud.dialogflow.v2beta1.AgentAssistantRecord agent_assistant_record = 4;
hasAgentAssistantRecord
in interface AnswerRecordOrBuilder
public AgentAssistantRecord getAgentAssistantRecord()
Output only. The record for human agent assistant.
.google.cloud.dialogflow.v2beta1.AgentAssistantRecord agent_assistant_record = 4;
getAgentAssistantRecord
in interface AnswerRecordOrBuilder
public AnswerRecord.Builder setAgentAssistantRecord(AgentAssistantRecord value)
Output only. The record for human agent assistant.
.google.cloud.dialogflow.v2beta1.AgentAssistantRecord agent_assistant_record = 4;
public AnswerRecord.Builder setAgentAssistantRecord(AgentAssistantRecord.Builder builderForValue)
Output only. The record for human agent assistant.
.google.cloud.dialogflow.v2beta1.AgentAssistantRecord agent_assistant_record = 4;
public AnswerRecord.Builder mergeAgentAssistantRecord(AgentAssistantRecord value)
Output only. The record for human agent assistant.
.google.cloud.dialogflow.v2beta1.AgentAssistantRecord agent_assistant_record = 4;
public AnswerRecord.Builder clearAgentAssistantRecord()
Output only. The record for human agent assistant.
.google.cloud.dialogflow.v2beta1.AgentAssistantRecord agent_assistant_record = 4;
public AgentAssistantRecord.Builder getAgentAssistantRecordBuilder()
Output only. The record for human agent assistant.
.google.cloud.dialogflow.v2beta1.AgentAssistantRecord agent_assistant_record = 4;
public AgentAssistantRecordOrBuilder getAgentAssistantRecordOrBuilder()
Output only. The record for human agent assistant.
.google.cloud.dialogflow.v2beta1.AgentAssistantRecord agent_assistant_record = 4;
getAgentAssistantRecordOrBuilder
in interface AnswerRecordOrBuilder
public final AnswerRecord.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<AnswerRecord.Builder>
public final AnswerRecord.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<AnswerRecord.Builder>
Copyright © 2022 Google LLC. All rights reserved.