public final class FaqAnswer extends GeneratedMessageV3 implements FaqAnswerOrBuilder
Represents answer from "frequently asked questions".Protobuf type
google.cloud.dialogflow.v2beta1.FaqAnswer
Modifier and Type | Class and Description |
---|---|
static class |
FaqAnswer.Builder
Represents answer from "frequently asked questions".
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
Modifier and Type | Field and Description |
---|---|
static int |
ANSWER_FIELD_NUMBER |
static int |
ANSWER_RECORD_FIELD_NUMBER |
static int |
CONFIDENCE_FIELD_NUMBER |
static int |
METADATA_FIELD_NUMBER |
static int |
QUESTION_FIELD_NUMBER |
static int |
SOURCE_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
Modifier and Type | Method and Description |
---|---|
boolean |
containsMetadata(String key)
A map that contains metadata about the answer and the
document from which it originates.
|
boolean |
equals(Object obj) |
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).
|
static FaqAnswer |
getDefaultInstance() |
FaqAnswer |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
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.
|
Parser<FaqAnswer> |
getParserForType() |
String |
getQuestion()
The corresponding FAQ question.
|
ByteString |
getQuestionBytes()
The corresponding FAQ question.
|
int |
getSerializedSize() |
String |
getSource()
Indicates which Knowledge Document this answer was extracted
from.
|
ByteString |
getSourceBytes()
Indicates which Knowledge Document this answer was extracted
from.
|
UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static FaqAnswer.Builder |
newBuilder() |
static FaqAnswer.Builder |
newBuilder(FaqAnswer prototype) |
FaqAnswer.Builder |
newBuilderForType() |
protected FaqAnswer.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) |
static FaqAnswer |
parseDelimitedFrom(InputStream input) |
static FaqAnswer |
parseDelimitedFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static FaqAnswer |
parseFrom(byte[] data) |
static FaqAnswer |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static FaqAnswer |
parseFrom(ByteBuffer data) |
static FaqAnswer |
parseFrom(ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static FaqAnswer |
parseFrom(ByteString data) |
static FaqAnswer |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static FaqAnswer |
parseFrom(CodedInputStream input) |
static FaqAnswer |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static FaqAnswer |
parseFrom(InputStream input) |
static FaqAnswer |
parseFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<FaqAnswer> |
parser() |
FaqAnswer.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int ANSWER_FIELD_NUMBER
public static final int CONFIDENCE_FIELD_NUMBER
public static final int QUESTION_FIELD_NUMBER
public static final int SOURCE_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER
public static final int ANSWER_RECORD_FIELD_NUMBER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class GeneratedMessageV3
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField
in class GeneratedMessageV3
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
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 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 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 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 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 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 final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static FaqAnswer parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static FaqAnswer parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static FaqAnswer parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static FaqAnswer parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static FaqAnswer parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static FaqAnswer parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static FaqAnswer parseFrom(InputStream input) throws IOException
IOException
public static FaqAnswer parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static FaqAnswer parseDelimitedFrom(InputStream input) throws IOException
IOException
public static FaqAnswer parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static FaqAnswer parseFrom(CodedInputStream input) throws IOException
IOException
public static FaqAnswer parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public FaqAnswer.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static FaqAnswer.Builder newBuilder()
public static FaqAnswer.Builder newBuilder(FaqAnswer prototype)
public FaqAnswer.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected FaqAnswer.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static FaqAnswer getDefaultInstance()
public Parser<FaqAnswer> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public FaqAnswer getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2022 Google LLC. All rights reserved.