public final class FaqAnswerData extends com.google.protobuf.GeneratedMessageV3 implements FaqAnswerDataOrBuilder
Agent Assist frequently-asked-question answer data.Protobuf type
google.cloud.contactcenterinsights.v1.FaqAnswerData| Modifier and Type | Class and Description |
|---|---|
static class |
FaqAnswerData.Builder
Agent Assist frequently-asked-question answer data.
|
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 |
CONFIDENCE_SCORE_FIELD_NUMBER |
static int |
METADATA_FIELD_NUMBER |
static int |
QUERY_RECORD_FIELD_NUMBER |
static int |
QUESTION_FIELD_NUMBER |
static int |
SOURCE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsMetadata(String key)
Map that contains metadata about the FAQ answer and the document that
it originates from.
|
boolean |
equals(Object obj) |
String |
getAnswer()
The piece of text from the `source` knowledge base document.
|
com.google.protobuf.ByteString |
getAnswerBytes()
The piece of text from the `source` knowledge base document.
|
float |
getConfidenceScore()
The system's confidence score that this answer is a good match for this
conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely
certain).
|
static FaqAnswerData |
getDefaultInstance() |
FaqAnswerData |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Map<String,String> |
getMetadata()
Deprecated.
|
int |
getMetadataCount()
Map that contains metadata about the FAQ answer and the document that
it originates from.
|
Map<String,String> |
getMetadataMap()
Map that contains metadata about the FAQ answer and the document that
it originates from.
|
String |
getMetadataOrDefault(String key,
String defaultValue)
Map that contains metadata about the FAQ answer and the document that
it originates from.
|
String |
getMetadataOrThrow(String key)
Map that contains metadata about the FAQ answer and the document that
it originates from.
|
com.google.protobuf.Parser<FaqAnswerData> |
getParserForType() |
String |
getQueryRecord()
The name of the answer record.
|
com.google.protobuf.ByteString |
getQueryRecordBytes()
The name of the answer record.
|
String |
getQuestion()
The corresponding FAQ question.
|
com.google.protobuf.ByteString |
getQuestionBytes()
The corresponding FAQ question.
|
int |
getSerializedSize() |
String |
getSource()
The knowledge document that this answer was extracted from.
|
com.google.protobuf.ByteString |
getSourceBytes()
The knowledge document that this answer was extracted from.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static FaqAnswerData.Builder |
newBuilder() |
static FaqAnswerData.Builder |
newBuilder(FaqAnswerData prototype) |
FaqAnswerData.Builder |
newBuilderForType() |
protected FaqAnswerData.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static FaqAnswerData |
parseDelimitedFrom(InputStream input) |
static FaqAnswerData |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static FaqAnswerData |
parseFrom(byte[] data) |
static FaqAnswerData |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static FaqAnswerData |
parseFrom(ByteBuffer data) |
static FaqAnswerData |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static FaqAnswerData |
parseFrom(com.google.protobuf.ByteString data) |
static FaqAnswerData |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static FaqAnswerData |
parseFrom(com.google.protobuf.CodedInputStream input) |
static FaqAnswerData |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static FaqAnswerData |
parseFrom(InputStream input) |
static FaqAnswerData |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<FaqAnswerData> |
parser() |
FaqAnswerData.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, 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_SCORE_FIELD_NUMBER
public static final int QUESTION_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER
public static final int QUERY_RECORD_FIELD_NUMBER
public static final int SOURCE_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance 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()
The piece of text from the `source` knowledge base document.
string answer = 1;getAnswer in interface FaqAnswerDataOrBuilderpublic com.google.protobuf.ByteString getAnswerBytes()
The piece of text from the `source` knowledge base document.
string answer = 1;getAnswerBytes in interface FaqAnswerDataOrBuilderpublic float getConfidenceScore()
The system's confidence score that this answer is a good match for this conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely certain).
float confidence_score = 2;getConfidenceScore in interface FaqAnswerDataOrBuilderpublic String getQuestion()
The corresponding FAQ question.
string question = 3;getQuestion in interface FaqAnswerDataOrBuilderpublic com.google.protobuf.ByteString getQuestionBytes()
The corresponding FAQ question.
string question = 3;getQuestionBytes in interface FaqAnswerDataOrBuilderpublic int getMetadataCount()
FaqAnswerDataOrBuilderMap that contains metadata about the FAQ answer and the document that it originates from.
map<string, string> metadata = 4;getMetadataCount in interface FaqAnswerDataOrBuilderpublic boolean containsMetadata(String key)
Map that contains metadata about the FAQ answer and the document that it originates from.
map<string, string> metadata = 4;containsMetadata in interface FaqAnswerDataOrBuilder@Deprecated public Map<String,String> getMetadata()
getMetadataMap() instead.getMetadata in interface FaqAnswerDataOrBuilderpublic Map<String,String> getMetadataMap()
Map that contains metadata about the FAQ answer and the document that it originates from.
map<string, string> metadata = 4;getMetadataMap in interface FaqAnswerDataOrBuilderpublic String getMetadataOrDefault(String key, String defaultValue)
Map that contains metadata about the FAQ answer and the document that it originates from.
map<string, string> metadata = 4;getMetadataOrDefault in interface FaqAnswerDataOrBuilderpublic String getMetadataOrThrow(String key)
Map that contains metadata about the FAQ answer and the document that it originates from.
map<string, string> metadata = 4;getMetadataOrThrow in interface FaqAnswerDataOrBuilderpublic String getQueryRecord()
The name of the answer record.
Format:
projects/{project}/locations/{location}/answerRecords/{answer_record}
string query_record = 5;getQueryRecord in interface FaqAnswerDataOrBuilderpublic com.google.protobuf.ByteString getQueryRecordBytes()
The name of the answer record.
Format:
projects/{project}/locations/{location}/answerRecords/{answer_record}
string query_record = 5;getQueryRecordBytes in interface FaqAnswerDataOrBuilderpublic String getSource()
The knowledge document that this answer was extracted from.
Format:
projects/{project}/knowledgeBases/{knowledge_base}/documents/{document}.
string source = 6;getSource in interface FaqAnswerDataOrBuilderpublic com.google.protobuf.ByteString getSourceBytes()
The knowledge document that this answer was extracted from.
Format:
projects/{project}/knowledgeBases/{knowledge_base}/documents/{document}.
string source = 6;getSourceBytes in interface FaqAnswerDataOrBuilderpublic 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 FaqAnswerData parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FaqAnswerData parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FaqAnswerData parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FaqAnswerData parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FaqAnswerData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FaqAnswerData parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static FaqAnswerData parseFrom(InputStream input) throws IOException
IOExceptionpublic static FaqAnswerData parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static FaqAnswerData parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static FaqAnswerData parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static FaqAnswerData parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static FaqAnswerData parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic FaqAnswerData.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static FaqAnswerData.Builder newBuilder()
public static FaqAnswerData.Builder newBuilder(FaqAnswerData prototype)
public FaqAnswerData.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected FaqAnswerData.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static FaqAnswerData getDefaultInstance()
public static com.google.protobuf.Parser<FaqAnswerData> parser()
public com.google.protobuf.Parser<FaqAnswerData> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public FaqAnswerData getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.