public static final class Suggestion.FaqAnswer.Builder extends GeneratedMessageV3.Builder<Suggestion.FaqAnswer.Builder> implements Suggestion.FaqAnswerOrBuilder
Represents suggested answer from "frequently asked questions".Protobuf type
google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, 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 MapField internalGetMapField(int number)
internalGetMapField
in class GeneratedMessageV3.Builder<Suggestion.FaqAnswer.Builder>
protected MapField internalGetMutableMapField(int number)
internalGetMutableMapField
in class GeneratedMessageV3.Builder<Suggestion.FaqAnswer.Builder>
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<Suggestion.FaqAnswer.Builder>
public Suggestion.FaqAnswer.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<Suggestion.FaqAnswer.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<Suggestion.FaqAnswer.Builder>
public Suggestion.FaqAnswer getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public Suggestion.FaqAnswer build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public Suggestion.FaqAnswer buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public Suggestion.FaqAnswer.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<Suggestion.FaqAnswer.Builder>
public Suggestion.FaqAnswer.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<Suggestion.FaqAnswer.Builder>
public Suggestion.FaqAnswer.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<Suggestion.FaqAnswer.Builder>
public Suggestion.FaqAnswer.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<Suggestion.FaqAnswer.Builder>
public Suggestion.FaqAnswer.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Suggestion.FaqAnswer.Builder>
public Suggestion.FaqAnswer.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<Suggestion.FaqAnswer.Builder>
public Suggestion.FaqAnswer.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<Suggestion.FaqAnswer.Builder>
public Suggestion.FaqAnswer.Builder mergeFrom(Suggestion.FaqAnswer other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<Suggestion.FaqAnswer.Builder>
public Suggestion.FaqAnswer.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Suggestion.FaqAnswer.Builder>
IOException
public String getAnswer()
Output only. The piece of text from the `source` knowledge base document.
string answer = 1;
getAnswer
in interface Suggestion.FaqAnswerOrBuilder
public ByteString getAnswerBytes()
Output only. The piece of text from the `source` knowledge base document.
string answer = 1;
getAnswerBytes
in interface Suggestion.FaqAnswerOrBuilder
public Suggestion.FaqAnswer.Builder setAnswer(String value)
Output only. The piece of text from the `source` knowledge base document.
string answer = 1;
value
- The answer to set.public Suggestion.FaqAnswer.Builder clearAnswer()
Output only. The piece of text from the `source` knowledge base document.
string answer = 1;
public Suggestion.FaqAnswer.Builder setAnswerBytes(ByteString value)
Output only. The piece of text from the `source` knowledge base document.
string answer = 1;
value
- The bytes for answer to set.public float getConfidence()
The system's confidence score that this Knowledge answer is a good match for this conversational query, range from 0.0 (completely uncertain) to 1.0 (completely certain).
float confidence = 2;
getConfidence
in interface Suggestion.FaqAnswerOrBuilder
public Suggestion.FaqAnswer.Builder setConfidence(float value)
The system's confidence score that this Knowledge answer is a good match for this conversational query, range from 0.0 (completely uncertain) to 1.0 (completely certain).
float confidence = 2;
value
- The confidence to set.public Suggestion.FaqAnswer.Builder clearConfidence()
The system's confidence score that this Knowledge answer is a good match for this conversational query, range from 0.0 (completely uncertain) to 1.0 (completely certain).
float confidence = 2;
public String getQuestion()
Output only. The corresponding FAQ question.
string question = 3;
getQuestion
in interface Suggestion.FaqAnswerOrBuilder
public ByteString getQuestionBytes()
Output only. The corresponding FAQ question.
string question = 3;
getQuestionBytes
in interface Suggestion.FaqAnswerOrBuilder
public Suggestion.FaqAnswer.Builder setQuestion(String value)
Output only. The corresponding FAQ question.
string question = 3;
value
- The question to set.public Suggestion.FaqAnswer.Builder clearQuestion()
Output only. The corresponding FAQ question.
string question = 3;
public Suggestion.FaqAnswer.Builder setQuestionBytes(ByteString value)
Output only. The corresponding FAQ question.
string question = 3;
value
- The bytes for question to set.public String getSource()
Output only. Indicates which Knowledge Document this answer was extracted from. Format: `projects/<Project ID>/locations/<Location ID>/agent/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>`.
string source = 4;
getSource
in interface Suggestion.FaqAnswerOrBuilder
public ByteString getSourceBytes()
Output only. Indicates which Knowledge Document this answer was extracted from. Format: `projects/<Project ID>/locations/<Location ID>/agent/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>`.
string source = 4;
getSourceBytes
in interface Suggestion.FaqAnswerOrBuilder
public Suggestion.FaqAnswer.Builder setSource(String value)
Output only. Indicates which Knowledge Document this answer was extracted from. Format: `projects/<Project ID>/locations/<Location ID>/agent/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>`.
string source = 4;
value
- The source to set.public Suggestion.FaqAnswer.Builder clearSource()
Output only. Indicates which Knowledge Document this answer was extracted from. Format: `projects/<Project ID>/locations/<Location ID>/agent/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>`.
string source = 4;
public Suggestion.FaqAnswer.Builder setSourceBytes(ByteString value)
Output only. Indicates which Knowledge Document this answer was extracted from. Format: `projects/<Project ID>/locations/<Location ID>/agent/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>`.
string source = 4;
value
- The bytes for source to set.public int getMetadataCount()
Suggestion.FaqAnswerOrBuilder
Output only. A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;
getMetadataCount
in interface Suggestion.FaqAnswerOrBuilder
public boolean containsMetadata(String key)
Output only. A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;
containsMetadata
in interface Suggestion.FaqAnswerOrBuilder
@Deprecated public Map<String,String> getMetadata()
getMetadataMap()
instead.getMetadata
in interface Suggestion.FaqAnswerOrBuilder
public Map<String,String> getMetadataMap()
Output only. A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;
getMetadataMap
in interface Suggestion.FaqAnswerOrBuilder
public String getMetadataOrDefault(String key, String defaultValue)
Output only. A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;
getMetadataOrDefault
in interface Suggestion.FaqAnswerOrBuilder
public String getMetadataOrThrow(String key)
Output only. A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;
getMetadataOrThrow
in interface Suggestion.FaqAnswerOrBuilder
public Suggestion.FaqAnswer.Builder clearMetadata()
public Suggestion.FaqAnswer.Builder removeMetadata(String key)
Output only. A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;
@Deprecated public Map<String,String> getMutableMetadata()
public Suggestion.FaqAnswer.Builder putMetadata(String key, String value)
Output only. A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;
public Suggestion.FaqAnswer.Builder putAllMetadata(Map<String,String> values)
Output only. A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;
public String getAnswerRecord()
Output only. The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"
string answer_record = 6;
getAnswerRecord
in interface Suggestion.FaqAnswerOrBuilder
public ByteString getAnswerRecordBytes()
Output only. The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"
string answer_record = 6;
getAnswerRecordBytes
in interface Suggestion.FaqAnswerOrBuilder
public Suggestion.FaqAnswer.Builder setAnswerRecord(String value)
Output only. The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"
string answer_record = 6;
value
- The answerRecord to set.public Suggestion.FaqAnswer.Builder clearAnswerRecord()
Output only. The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"
string answer_record = 6;
public Suggestion.FaqAnswer.Builder setAnswerRecordBytes(ByteString value)
Output only. The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"
string answer_record = 6;
value
- The bytes for answerRecord to set.public final Suggestion.FaqAnswer.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<Suggestion.FaqAnswer.Builder>
public final Suggestion.FaqAnswer.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<Suggestion.FaqAnswer.Builder>
Copyright © 2022 Google LLC. All rights reserved.