- 4.84.0 (latest)
 - 4.82.0
 - 4.81.0
 - 4.80.0
 - 4.79.0
 - 4.78.0
 - 4.76.0
 - 4.74.0
 - 4.73.0
 - 4.70.0
 - 4.69.0
 - 4.68.0
 - 4.66.0
 - 4.65.0
 - 4.64.0
 - 4.63.0
 - 4.62.0
 - 4.61.0
 - 4.60.0
 - 4.59.0
 - 4.58.0
 - 4.57.0
 - 4.55.0
 - 4.54.0
 - 4.53.0
 - 4.52.0
 - 4.51.0
 - 4.50.0
 - 4.49.0
 - 4.48.0
 - 4.47.0
 - 4.46.0
 - 4.45.0
 - 4.43.0
 - 4.42.0
 - 4.41.0
 - 4.40.0
 - 4.39.0
 - 4.38.0
 - 4.37.0
 - 4.36.0
 - 4.35.0
 - 4.34.0
 - 4.33.0
 - 4.30.0
 - 4.29.0
 - 4.28.0
 - 4.27.0
 - 4.26.0
 - 4.25.0
 - 4.24.0
 - 4.23.0
 - 4.22.0
 - 4.21.0
 - 4.20.0
 - 4.19.0
 - 4.18.0
 - 4.17.0
 - 4.15.0
 - 4.14.0
 - 4.13.0
 - 4.12.0
 - 4.11.0
 - 4.10.0
 - 4.9.1
 - 4.8.6
 - 4.7.5
 - 4.6.0
 - 4.5.11
 - 4.4.0
 - 4.3.1
 
public static final class FaqAnswer.Builder extends GeneratedMessageV3.Builder<FaqAnswer.Builder> implements FaqAnswerOrBuilderRepresents answer from "frequently asked questions".
 Protobuf type google.cloud.dialogflow.v2.FaqAnswer
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > FaqAnswer.BuilderImplements
FaqAnswerOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Type | Description | 
Descriptor | 
        
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public FaqAnswer.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Name | Description | 
field | 
        FieldDescriptor | 
      
value | 
        Object | 
      
| Type | Description | 
FaqAnswer.Builder | 
        
build()
public FaqAnswer build()| Type | Description | 
FaqAnswer | 
        
buildPartial()
public FaqAnswer buildPartial()| Type | Description | 
FaqAnswer | 
        
clear()
public FaqAnswer.Builder clear()| Type | Description | 
FaqAnswer.Builder | 
        
clearAnswer()
public FaqAnswer.Builder clearAnswer() The piece of text from the source knowledge base document.
 string answer = 1;
| Type | Description | 
FaqAnswer.Builder | 
        This builder for chaining.  | 
      
clearAnswerRecord()
public FaqAnswer.Builder clearAnswerRecord()The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"
 string answer_record = 6;
| Type | Description | 
FaqAnswer.Builder | 
        This builder for chaining.  | 
      
clearConfidence()
public 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;
| Type | Description | 
FaqAnswer.Builder | 
        This builder for chaining.  | 
      
clearField(Descriptors.FieldDescriptor field)
public FaqAnswer.Builder clearField(Descriptors.FieldDescriptor field)| Name | Description | 
field | 
        FieldDescriptor | 
      
| Type | Description | 
FaqAnswer.Builder | 
        
clearMetadata()
public FaqAnswer.Builder clearMetadata()| Type | Description | 
FaqAnswer.Builder | 
        
clearOneof(Descriptors.OneofDescriptor oneof)
public FaqAnswer.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Name | Description | 
oneof | 
        OneofDescriptor | 
      
| Type | Description | 
FaqAnswer.Builder | 
        
clearQuestion()
public FaqAnswer.Builder clearQuestion()The corresponding FAQ question.
 string question = 3;
| Type | Description | 
FaqAnswer.Builder | 
        This builder for chaining.  | 
      
clearSource()
public FaqAnswer.Builder clearSource() 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;
| Type | Description | 
FaqAnswer.Builder | 
        This builder for chaining.  | 
      
clone()
public FaqAnswer.Builder clone()| Type | Description | 
FaqAnswer.Builder | 
        
containsMetadata(String key)
public boolean containsMetadata(String key)A map that contains metadata about the answer and the document from which it originates.
 map<string, string> metadata = 5;
| Name | Description | 
key | 
        String | 
      
| Type | Description | 
boolean | 
        
getAnswer()
public String getAnswer() The piece of text from the source knowledge base document.
 string answer = 1;
| Type | Description | 
String | 
        The answer.  | 
      
getAnswerBytes()
public ByteString getAnswerBytes() The piece of text from the source knowledge base document.
 string answer = 1;
| Type | Description | 
ByteString | 
        The bytes for answer.  | 
      
getAnswerRecord()
public String getAnswerRecord()The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"
 string answer_record = 6;
| Type | Description | 
String | 
        The answerRecord.  | 
      
getAnswerRecordBytes()
public ByteString getAnswerRecordBytes()The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"
 string answer_record = 6;
| Type | Description | 
ByteString | 
        The bytes for answerRecord.  | 
      
getConfidence()
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;
| Type | Description | 
float | 
        The confidence.  | 
      
getDefaultInstanceForType()
public FaqAnswer getDefaultInstanceForType()| Type | Description | 
FaqAnswer | 
        
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Type | Description | 
Descriptor | 
        
getMetadata()
public Map<String,String> getMetadata()Use #getMetadataMap() instead.
| Type | Description | 
Map<String,String> | 
        
getMetadataCount()
public int getMetadataCount()A map that contains metadata about the answer and the document from which it originates.
 map<string, string> metadata = 5;
| Type | Description | 
int | 
        
getMetadataMap()
public Map<String,String> getMetadataMap()A map that contains metadata about the answer and the document from which it originates.
 map<string, string> metadata = 5;
| Type | Description | 
Map<String,String> | 
        
getMetadataOrDefault(String key, String defaultValue)
public String getMetadataOrDefault(String key, String defaultValue)A map that contains metadata about the answer and the document from which it originates.
 map<string, string> metadata = 5;
| Name | Description | 
key | 
        String | 
      
defaultValue | 
        String | 
      
| Type | Description | 
String | 
        
getMetadataOrThrow(String key)
public String getMetadataOrThrow(String key)A map that contains metadata about the answer and the document from which it originates.
 map<string, string> metadata = 5;
| Name | Description | 
key | 
        String | 
      
| Type | Description | 
String | 
        
getMutableMetadata()
public Map<String,String> getMutableMetadata()Use alternate mutation accessors instead.
| Type | Description | 
Map<String,String> | 
        
getQuestion()
public String getQuestion()The corresponding FAQ question.
 string question = 3;
| Type | Description | 
String | 
        The question.  | 
      
getQuestionBytes()
public ByteString getQuestionBytes()The corresponding FAQ question.
 string question = 3;
| Type | Description | 
ByteString | 
        The bytes for question.  | 
      
getSource()
public String getSource() 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;
| Type | Description | 
String | 
        The source.  | 
      
getSourceBytes()
public ByteString getSourceBytes() 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;
| Type | Description | 
ByteString | 
        The bytes for source.  | 
      
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Type | Description | 
FieldAccessorTable | 
        
internalGetMapField(int number)
protected MapField internalGetMapField(int number)| Name | Description | 
number | 
        int | 
      
| Type | Description | 
MapField | 
        
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)| Name | Description | 
number | 
        int | 
      
| Type | Description | 
MapField | 
        
isInitialized()
public final boolean isInitialized()| Type | Description | 
boolean | 
        
mergeFrom(FaqAnswer other)
public FaqAnswer.Builder mergeFrom(FaqAnswer other)| Name | Description | 
other | 
        FaqAnswer | 
      
| Type | Description | 
FaqAnswer.Builder | 
        
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public FaqAnswer.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Name | Description | 
input | 
        CodedInputStream | 
      
extensionRegistry | 
        ExtensionRegistryLite | 
      
| Type | Description | 
FaqAnswer.Builder | 
        
| Type | Description | 
IOException | 
        
mergeFrom(Message other)
public FaqAnswer.Builder mergeFrom(Message other)| Name | Description | 
other | 
        Message | 
      
| Type | Description | 
FaqAnswer.Builder | 
        
mergeUnknownFields(UnknownFieldSet unknownFields)
public final FaqAnswer.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Name | Description | 
unknownFields | 
        UnknownFieldSet | 
      
| Type | Description | 
FaqAnswer.Builder | 
        
putAllMetadata(Map<String,String> values)
public FaqAnswer.Builder putAllMetadata(Map<String,String> values)A map that contains metadata about the answer and the document from which it originates.
 map<string, string> metadata = 5;
| Name | Description | 
values | 
        Map<String,String> | 
      
| Type | Description | 
FaqAnswer.Builder | 
        
putMetadata(String key, String value)
public FaqAnswer.Builder putMetadata(String key, String value)A map that contains metadata about the answer and the document from which it originates.
 map<string, string> metadata = 5;
| Name | Description | 
key | 
        String | 
      
value | 
        String | 
      
| Type | Description | 
FaqAnswer.Builder | 
        
removeMetadata(String key)
public FaqAnswer.Builder removeMetadata(String key)A map that contains metadata about the answer and the document from which it originates.
 map<string, string> metadata = 5;
| Name | Description | 
key | 
        String | 
      
| Type | Description | 
FaqAnswer.Builder | 
        
setAnswer(String value)
public FaqAnswer.Builder setAnswer(String value) The piece of text from the source knowledge base document.
 string answer = 1;
| Name | Description | 
value | 
        StringThe answer to set.  | 
      
| Type | Description | 
FaqAnswer.Builder | 
        This builder for chaining.  | 
      
setAnswerBytes(ByteString value)
public FaqAnswer.Builder setAnswerBytes(ByteString value) The piece of text from the source knowledge base document.
 string answer = 1;
| Name | Description | 
value | 
        ByteStringThe bytes for answer to set.  | 
      
| Type | Description | 
FaqAnswer.Builder | 
        This builder for chaining.  | 
      
setAnswerRecord(String value)
public FaqAnswer.Builder setAnswerRecord(String value)The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"
 string answer_record = 6;
| Name | Description | 
value | 
        StringThe answerRecord to set.  | 
      
| Type | Description | 
FaqAnswer.Builder | 
        This builder for chaining.  | 
      
setAnswerRecordBytes(ByteString value)
public FaqAnswer.Builder setAnswerRecordBytes(ByteString value)The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"
 string answer_record = 6;
| Name | Description | 
value | 
        ByteStringThe bytes for answerRecord to set.  | 
      
| Type | Description | 
FaqAnswer.Builder | 
        This builder for chaining.  | 
      
setConfidence(float value)
public 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;
| Name | Description | 
value | 
        floatThe confidence to set.  | 
      
| Type | Description | 
FaqAnswer.Builder | 
        This builder for chaining.  | 
      
setField(Descriptors.FieldDescriptor field, Object value)
public FaqAnswer.Builder setField(Descriptors.FieldDescriptor field, Object value)| Name | Description | 
field | 
        FieldDescriptor | 
      
value | 
        Object | 
      
| Type | Description | 
FaqAnswer.Builder | 
        
setQuestion(String value)
public FaqAnswer.Builder setQuestion(String value)The corresponding FAQ question.
 string question = 3;
| Name | Description | 
value | 
        StringThe question to set.  | 
      
| Type | Description | 
FaqAnswer.Builder | 
        This builder for chaining.  | 
      
setQuestionBytes(ByteString value)
public FaqAnswer.Builder setQuestionBytes(ByteString value)The corresponding FAQ question.
 string question = 3;
| Name | Description | 
value | 
        ByteStringThe bytes for question to set.  | 
      
| Type | Description | 
FaqAnswer.Builder | 
        This builder for chaining.  | 
      
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public FaqAnswer.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Name | Description | 
field | 
        FieldDescriptor | 
      
index | 
        int | 
      
value | 
        Object | 
      
| Type | Description | 
FaqAnswer.Builder | 
        
setSource(String value)
public FaqAnswer.Builder setSource(String value) 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;
| Name | Description | 
value | 
        StringThe source to set.  | 
      
| Type | Description | 
FaqAnswer.Builder | 
        This builder for chaining.  | 
      
setSourceBytes(ByteString value)
public FaqAnswer.Builder setSourceBytes(ByteString value) 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;
| Name | Description | 
value | 
        ByteStringThe bytes for source to set.  | 
      
| Type | Description | 
FaqAnswer.Builder | 
        This builder for chaining.  | 
      
setUnknownFields(UnknownFieldSet unknownFields)
public final FaqAnswer.Builder setUnknownFields(UnknownFieldSet unknownFields)| Name | Description | 
unknownFields | 
        UnknownFieldSet | 
      
| Type | Description | 
FaqAnswer.Builder |