public static final class Suggestion.FaqAnswer extends com.google.protobuf.GeneratedMessageV3 implements Suggestion.FaqAnswerOrBuilder
Represents suggested answer from "frequently asked questions".Protobuf type
google.cloud.dialogflow.v2beta1.Suggestion.FaqAnswer| Modifier and Type | Class and Description |
|---|---|
static class |
Suggestion.FaqAnswer.Builder
Represents suggested answer from "frequently asked questions".
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| 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 |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsMetadata(String key)
Output only.
|
boolean |
equals(Object obj) |
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).
|
static Suggestion.FaqAnswer |
getDefaultInstance() |
Suggestion.FaqAnswer |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
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.
|
com.google.protobuf.Parser<Suggestion.FaqAnswer> |
getParserForType() |
String |
getQuestion()
Output only.
|
com.google.protobuf.ByteString |
getQuestionBytes()
Output only.
|
int |
getSerializedSize() |
String |
getSource()
Output only.
|
com.google.protobuf.ByteString |
getSourceBytes()
Output only.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static Suggestion.FaqAnswer.Builder |
newBuilder() |
static Suggestion.FaqAnswer.Builder |
newBuilder(Suggestion.FaqAnswer prototype) |
Suggestion.FaqAnswer.Builder |
newBuilderForType() |
protected Suggestion.FaqAnswer.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Suggestion.FaqAnswer |
parseDelimitedFrom(InputStream input) |
static Suggestion.FaqAnswer |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Suggestion.FaqAnswer |
parseFrom(byte[] data) |
static Suggestion.FaqAnswer |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Suggestion.FaqAnswer |
parseFrom(ByteBuffer data) |
static Suggestion.FaqAnswer |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Suggestion.FaqAnswer |
parseFrom(com.google.protobuf.ByteString data) |
static Suggestion.FaqAnswer |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Suggestion.FaqAnswer |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Suggestion.FaqAnswer |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Suggestion.FaqAnswer |
parseFrom(InputStream input) |
static Suggestion.FaqAnswer |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Suggestion.FaqAnswer> |
parser() |
Suggestion.FaqAnswer.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic 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(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 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 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 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 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 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 final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Suggestion.FaqAnswer parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Suggestion.FaqAnswer parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Suggestion.FaqAnswer parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Suggestion.FaqAnswer parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Suggestion.FaqAnswer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Suggestion.FaqAnswer parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Suggestion.FaqAnswer parseFrom(InputStream input) throws IOException
IOExceptionpublic static Suggestion.FaqAnswer parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Suggestion.FaqAnswer parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Suggestion.FaqAnswer parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Suggestion.FaqAnswer parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Suggestion.FaqAnswer parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Suggestion.FaqAnswer.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Suggestion.FaqAnswer.Builder newBuilder()
public static Suggestion.FaqAnswer.Builder newBuilder(Suggestion.FaqAnswer prototype)
public Suggestion.FaqAnswer.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Suggestion.FaqAnswer.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Suggestion.FaqAnswer getDefaultInstance()
public static com.google.protobuf.Parser<Suggestion.FaqAnswer> parser()
public com.google.protobuf.Parser<Suggestion.FaqAnswer> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Suggestion.FaqAnswer getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.