public static final class Suggestion.FaqAnswer.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.FaqAnswer.Builder> implements Suggestion.FaqAnswerOrBuilder
Represents suggested answer from "frequently asked questions".Protobuf type
google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer| Modifier and Type | Method and Description |
|---|---|
Suggestion.FaqAnswer.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Suggestion.FaqAnswer |
build() |
Suggestion.FaqAnswer |
buildPartial() |
Suggestion.FaqAnswer.Builder |
clear() |
Suggestion.FaqAnswer.Builder |
clearAnswer()
Output only.
|
Suggestion.FaqAnswer.Builder |
clearAnswerRecord()
Output only.
|
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).
|
Suggestion.FaqAnswer.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Suggestion.FaqAnswer.Builder |
clearMetadata() |
Suggestion.FaqAnswer.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Suggestion.FaqAnswer.Builder |
clearQuestion()
Output only.
|
Suggestion.FaqAnswer.Builder |
clearSource()
Output only.
|
Suggestion.FaqAnswer.Builder |
clone() |
boolean |
containsMetadata(String key)
Output only.
|
String |
getAnswer()
Output only.
|
com.google.protobuf.ByteString |
getAnswerBytes()
Output only.
|
String |
getAnswerRecord()
Output only.
|
com.google.protobuf.ByteString |
getAnswerRecordBytes()
Output only.
|
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).
|
Suggestion.FaqAnswer |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Map<String,String> |
getMetadata()
Deprecated.
|
int |
getMetadataCount()
Output only.
|
Map<String,String> |
getMetadataMap()
Output only.
|
String |
getMetadataOrDefault(String key,
String defaultValue)
Output only.
|
String |
getMetadataOrThrow(String key)
Output only.
|
Map<String,String> |
getMutableMetadata()
Deprecated.
|
String |
getQuestion()
Output only.
|
com.google.protobuf.ByteString |
getQuestionBytes()
Output only.
|
String |
getSource()
Output only.
|
com.google.protobuf.ByteString |
getSourceBytes()
Output only.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
Suggestion.FaqAnswer.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Suggestion.FaqAnswer.Builder |
mergeFrom(com.google.protobuf.Message other) |
Suggestion.FaqAnswer.Builder |
mergeFrom(Suggestion.FaqAnswer other) |
Suggestion.FaqAnswer.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Suggestion.FaqAnswer.Builder |
putAllMetadata(Map<String,String> values)
Output only.
|
Suggestion.FaqAnswer.Builder |
putMetadata(String key,
String value)
Output only.
|
Suggestion.FaqAnswer.Builder |
removeMetadata(String key)
Output only.
|
Suggestion.FaqAnswer.Builder |
setAnswer(String value)
Output only.
|
Suggestion.FaqAnswer.Builder |
setAnswerBytes(com.google.protobuf.ByteString value)
Output only.
|
Suggestion.FaqAnswer.Builder |
setAnswerRecord(String value)
Output only.
|
Suggestion.FaqAnswer.Builder |
setAnswerRecordBytes(com.google.protobuf.ByteString value)
Output only.
|
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).
|
Suggestion.FaqAnswer.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Suggestion.FaqAnswer.Builder |
setQuestion(String value)
Output only.
|
Suggestion.FaqAnswer.Builder |
setQuestionBytes(com.google.protobuf.ByteString value)
Output only.
|
Suggestion.FaqAnswer.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Suggestion.FaqAnswer.Builder |
setSource(String value)
Output only.
|
Suggestion.FaqAnswer.Builder |
setSourceBytes(com.google.protobuf.ByteString value)
Output only.
|
Suggestion.FaqAnswer.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.FaqAnswer.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.FaqAnswer.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.FaqAnswer.Builder>public Suggestion.FaqAnswer.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.FaqAnswer.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.FaqAnswer.Builder>public Suggestion.FaqAnswer getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Suggestion.FaqAnswer build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Suggestion.FaqAnswer buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Suggestion.FaqAnswer.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.FaqAnswer.Builder>public Suggestion.FaqAnswer.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.FaqAnswer.Builder>public Suggestion.FaqAnswer.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.FaqAnswer.Builder>public Suggestion.FaqAnswer.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.FaqAnswer.Builder>public Suggestion.FaqAnswer.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.FaqAnswer.Builder>public Suggestion.FaqAnswer.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.FaqAnswer.Builder>public Suggestion.FaqAnswer.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Suggestion.FaqAnswer.Builder>public Suggestion.FaqAnswer.Builder mergeFrom(Suggestion.FaqAnswer other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.FaqAnswer.Builder>public Suggestion.FaqAnswer.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Suggestion.FaqAnswer.Builder>IOExceptionpublic String getAnswer()
Output only. The piece of text from the `source` knowledge base document.
string answer = 1;getAnswer in interface Suggestion.FaqAnswerOrBuilderpublic com.google.protobuf.ByteString getAnswerBytes()
Output only. The piece of text from the `source` knowledge base document.
string answer = 1;getAnswerBytes in interface Suggestion.FaqAnswerOrBuilderpublic 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(com.google.protobuf.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.FaqAnswerOrBuilderpublic 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.FaqAnswerOrBuilderpublic com.google.protobuf.ByteString getQuestionBytes()
Output only. The corresponding FAQ question.
string question = 3;getQuestionBytes in interface Suggestion.FaqAnswerOrBuilderpublic 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(com.google.protobuf.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.FaqAnswerOrBuilderpublic com.google.protobuf.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.FaqAnswerOrBuilderpublic 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(com.google.protobuf.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.FaqAnswerOrBuilderOutput 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.FaqAnswerOrBuilderpublic 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.FaqAnswerOrBuilderpublic 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.FaqAnswerOrBuilderpublic 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.FaqAnswerOrBuilderpublic 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.FaqAnswerOrBuilderpublic 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.FaqAnswerOrBuilderpublic com.google.protobuf.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.FaqAnswerOrBuilderpublic 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(com.google.protobuf.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(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.FaqAnswer.Builder>public final Suggestion.FaqAnswer.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Suggestion.FaqAnswer.Builder>Copyright © 2023 Google LLC. All rights reserved.