public static final class FaqAnswer.Builder extends GeneratedMessageV3.Builder<FaqAnswer.Builder> implements FaqAnswerOrBuilder
Represents answer from "frequently asked questions".Protobuf type
google.cloud.dialogflow.v2beta1.FaqAnswer
Modifier and Type | Method and Description |
---|---|
FaqAnswer.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
Object value) |
FaqAnswer |
build() |
FaqAnswer |
buildPartial() |
FaqAnswer.Builder |
clear() |
FaqAnswer.Builder |
clearAnswer()
The piece of text from the `source` knowledge base document.
|
FaqAnswer.Builder |
clearAnswerRecord()
The name of answer record, in the format of
"projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
ID>"
|
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).
|
FaqAnswer.Builder |
clearField(Descriptors.FieldDescriptor field) |
FaqAnswer.Builder |
clearMetadata() |
FaqAnswer.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
FaqAnswer.Builder |
clearQuestion()
The corresponding FAQ question.
|
FaqAnswer.Builder |
clearSource()
Indicates which Knowledge Document this answer was extracted
from.
|
FaqAnswer.Builder |
clone() |
boolean |
containsMetadata(String key)
A map that contains metadata about the answer and the
document from which it originates.
|
String |
getAnswer()
The piece of text from the `source` knowledge base document.
|
ByteString |
getAnswerBytes()
The piece of text from the `source` knowledge base document.
|
String |
getAnswerRecord()
The name of answer record, in the format of
"projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
ID>"
|
ByteString |
getAnswerRecordBytes()
The name of answer record, in the format of
"projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
ID>"
|
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).
|
FaqAnswer |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
Map<String,String> |
getMetadata()
Deprecated.
|
int |
getMetadataCount()
A map that contains metadata about the answer and the
document from which it originates.
|
Map<String,String> |
getMetadataMap()
A map that contains metadata about the answer and the
document from which it originates.
|
String |
getMetadataOrDefault(String key,
String defaultValue)
A map that contains metadata about the answer and the
document from which it originates.
|
String |
getMetadataOrThrow(String key)
A map that contains metadata about the answer and the
document from which it originates.
|
Map<String,String> |
getMutableMetadata()
Deprecated.
|
String |
getQuestion()
The corresponding FAQ question.
|
ByteString |
getQuestionBytes()
The corresponding FAQ question.
|
String |
getSource()
Indicates which Knowledge Document this answer was extracted
from.
|
ByteString |
getSourceBytes()
Indicates which Knowledge Document this answer was extracted
from.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected MapField |
internalGetMapField(int number) |
protected MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
FaqAnswer.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
FaqAnswer.Builder |
mergeFrom(FaqAnswer other) |
FaqAnswer.Builder |
mergeFrom(Message other) |
FaqAnswer.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
FaqAnswer.Builder |
putAllMetadata(Map<String,String> values)
A map that contains metadata about the answer and the
document from which it originates.
|
FaqAnswer.Builder |
putMetadata(String key,
String value)
A map that contains metadata about the answer and the
document from which it originates.
|
FaqAnswer.Builder |
removeMetadata(String key)
A map that contains metadata about the answer and the
document from which it originates.
|
FaqAnswer.Builder |
setAnswer(String value)
The piece of text from the `source` knowledge base document.
|
FaqAnswer.Builder |
setAnswerBytes(ByteString value)
The piece of text from the `source` knowledge base document.
|
FaqAnswer.Builder |
setAnswerRecord(String value)
The name of answer record, in the format of
"projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
ID>"
|
FaqAnswer.Builder |
setAnswerRecordBytes(ByteString value)
The name of answer record, in the format of
"projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
ID>"
|
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).
|
FaqAnswer.Builder |
setField(Descriptors.FieldDescriptor field,
Object value) |
FaqAnswer.Builder |
setQuestion(String value)
The corresponding FAQ question.
|
FaqAnswer.Builder |
setQuestionBytes(ByteString value)
The corresponding FAQ question.
|
FaqAnswer.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
Object value) |
FaqAnswer.Builder |
setSource(String value)
Indicates which Knowledge Document this answer was extracted
from.
|
FaqAnswer.Builder |
setSourceBytes(ByteString value)
Indicates which Knowledge Document this answer was extracted
from.
|
FaqAnswer.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
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<FaqAnswer.Builder>
protected MapField internalGetMutableMapField(int number)
internalGetMutableMapField
in class GeneratedMessageV3.Builder<FaqAnswer.Builder>
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<FaqAnswer.Builder>
public FaqAnswer.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<FaqAnswer.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<FaqAnswer.Builder>
public FaqAnswer getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public FaqAnswer build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public FaqAnswer buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public FaqAnswer.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<FaqAnswer.Builder>
public FaqAnswer.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<FaqAnswer.Builder>
public FaqAnswer.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<FaqAnswer.Builder>
public FaqAnswer.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<FaqAnswer.Builder>
public FaqAnswer.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<FaqAnswer.Builder>
public FaqAnswer.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<FaqAnswer.Builder>
public FaqAnswer.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<FaqAnswer.Builder>
public FaqAnswer.Builder mergeFrom(FaqAnswer other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<FaqAnswer.Builder>
public FaqAnswer.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<FaqAnswer.Builder>
IOException
public String getAnswer()
The piece of text from the `source` knowledge base document.
string answer = 1;
getAnswer
in interface FaqAnswerOrBuilder
public ByteString getAnswerBytes()
The piece of text from the `source` knowledge base document.
string answer = 1;
getAnswerBytes
in interface FaqAnswerOrBuilder
public FaqAnswer.Builder setAnswer(String value)
The piece of text from the `source` knowledge base document.
string answer = 1;
value
- The answer to set.public FaqAnswer.Builder clearAnswer()
The piece of text from the `source` knowledge base document.
string answer = 1;
public FaqAnswer.Builder setAnswerBytes(ByteString value)
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 FaqAnswerOrBuilder
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;
value
- The confidence to set.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;
public String getQuestion()
The corresponding FAQ question.
string question = 3;
getQuestion
in interface FaqAnswerOrBuilder
public ByteString getQuestionBytes()
The corresponding FAQ question.
string question = 3;
getQuestionBytes
in interface FaqAnswerOrBuilder
public FaqAnswer.Builder setQuestion(String value)
The corresponding FAQ question.
string question = 3;
value
- The question to set.public FaqAnswer.Builder clearQuestion()
The corresponding FAQ question.
string question = 3;
public FaqAnswer.Builder setQuestionBytes(ByteString value)
The corresponding FAQ question.
string question = 3;
value
- The bytes for question to set.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;
getSource
in interface FaqAnswerOrBuilder
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;
getSourceBytes
in interface FaqAnswerOrBuilder
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;
value
- The source to set.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;
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;
value
- The bytes for source to set.public int getMetadataCount()
FaqAnswerOrBuilder
A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;
getMetadataCount
in interface FaqAnswerOrBuilder
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;
containsMetadata
in interface FaqAnswerOrBuilder
@Deprecated public Map<String,String> getMetadata()
getMetadataMap()
instead.getMetadata
in interface FaqAnswerOrBuilder
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;
getMetadataMap
in interface FaqAnswerOrBuilder
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;
getMetadataOrDefault
in interface FaqAnswerOrBuilder
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;
getMetadataOrThrow
in interface FaqAnswerOrBuilder
public FaqAnswer.Builder clearMetadata()
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;
@Deprecated public Map<String,String> getMutableMetadata()
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;
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;
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;
getAnswerRecord
in interface FaqAnswerOrBuilder
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;
getAnswerRecordBytes
in interface FaqAnswerOrBuilder
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;
value
- The answerRecord to set.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;
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;
value
- The bytes for answerRecord to set.public final FaqAnswer.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<FaqAnswer.Builder>
public final FaqAnswer.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<FaqAnswer.Builder>
Copyright © 2022 Google LLC. All rights reserved.