Class QaAnswer
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.contactcenterinsights.v1.QaAnswer
- All Implemented Interfaces:
QaAnswerOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class QaAnswer
extends com.google.protobuf.GeneratedMessage
implements QaAnswerOrBuilder
An answer to a QaQuestion.Protobuf type
google.cloud.contactcenterinsights.v1.QaAnswer- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA question may have multiple answers from varying sources, one of which becomes the "main" answer above.static interfacestatic final classMessage for holding the value of a [QaAnswer][google.cloud.contactcenterinsights.v1.QaAnswer].static interfacestatic final classAn answer to a QaQuestion.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAnswerSources(int index) List of all individual answers given to the question.intList of all individual answers given to the question.List of all individual answers given to the question.getAnswerSourcesOrBuilder(int index) List of all individual answers given to the question.List<? extends QaAnswer.AnswerSourceOrBuilder>List of all individual answers given to the question.The main answer value, incorporating any manual edits if they exist.The main answer value, incorporating any manual edits if they exist.The conversation the answer applies to.com.google.protobuf.ByteStringThe conversation the answer applies to.static QaAnswerstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Parser<QaAnswer>The QaQuestion answered by this answer.com.google.protobuf.ByteStringThe QaQuestion answered by this answer.Question text.com.google.protobuf.ByteStringQuestion text.intgetTags(int index) User-defined list of arbitrary tags.com.google.protobuf.ByteStringgetTagsBytes(int index) User-defined list of arbitrary tags.intUser-defined list of arbitrary tags.com.google.protobuf.ProtocolStringListUser-defined list of arbitrary tags.booleanThe main answer value, incorporating any manual edits if they exist.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic QaAnswer.Builderstatic QaAnswer.BuildernewBuilder(QaAnswer prototype) protected QaAnswer.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static QaAnswerparseDelimitedFrom(InputStream input) static QaAnswerparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static QaAnswerparseFrom(byte[] data) static QaAnswerparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static QaAnswerparseFrom(com.google.protobuf.ByteString data) static QaAnswerparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static QaAnswerparseFrom(com.google.protobuf.CodedInputStream input) static QaAnswerparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static QaAnswerparseFrom(InputStream input) static QaAnswerparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static QaAnswerparseFrom(ByteBuffer data) static QaAnswerparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<QaAnswer>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
QA_QUESTION_FIELD_NUMBER
public static final int QA_QUESTION_FIELD_NUMBER- See Also:
-
CONVERSATION_FIELD_NUMBER
public static final int CONVERSATION_FIELD_NUMBER- See Also:
-
QUESTION_BODY_FIELD_NUMBER
public static final int QUESTION_BODY_FIELD_NUMBER- See Also:
-
ANSWER_VALUE_FIELD_NUMBER
public static final int ANSWER_VALUE_FIELD_NUMBER- See Also:
-
TAGS_FIELD_NUMBER
public static final int TAGS_FIELD_NUMBER- See Also:
-
ANSWER_SOURCES_FIELD_NUMBER
public static final int ANSWER_SOURCES_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getQaQuestion
The QaQuestion answered by this answer.
string qa_question = 7 [(.google.api.resource_reference) = { ... }- Specified by:
getQaQuestionin interfaceQaAnswerOrBuilder- Returns:
- The qaQuestion.
-
getQaQuestionBytes
public com.google.protobuf.ByteString getQaQuestionBytes()The QaQuestion answered by this answer.
string qa_question = 7 [(.google.api.resource_reference) = { ... }- Specified by:
getQaQuestionBytesin interfaceQaAnswerOrBuilder- Returns:
- The bytes for qaQuestion.
-
getConversation
The conversation the answer applies to.
string conversation = 2 [(.google.api.resource_reference) = { ... }- Specified by:
getConversationin interfaceQaAnswerOrBuilder- Returns:
- The conversation.
-
getConversationBytes
public com.google.protobuf.ByteString getConversationBytes()The conversation the answer applies to.
string conversation = 2 [(.google.api.resource_reference) = { ... }- Specified by:
getConversationBytesin interfaceQaAnswerOrBuilder- Returns:
- The bytes for conversation.
-
getQuestionBody
Question text. E.g., "Did the agent greet the customer?"
string question_body = 6;- Specified by:
getQuestionBodyin interfaceQaAnswerOrBuilder- Returns:
- The questionBody.
-
getQuestionBodyBytes
public com.google.protobuf.ByteString getQuestionBodyBytes()Question text. E.g., "Did the agent greet the customer?"
string question_body = 6;- Specified by:
getQuestionBodyBytesin interfaceQaAnswerOrBuilder- Returns:
- The bytes for questionBody.
-
hasAnswerValue
public boolean hasAnswerValue()The main answer value, incorporating any manual edits if they exist.
.google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue answer_value = 3;- Specified by:
hasAnswerValuein interfaceQaAnswerOrBuilder- Returns:
- Whether the answerValue field is set.
-
getAnswerValue
The main answer value, incorporating any manual edits if they exist.
.google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue answer_value = 3;- Specified by:
getAnswerValuein interfaceQaAnswerOrBuilder- Returns:
- The answerValue.
-
getAnswerValueOrBuilder
The main answer value, incorporating any manual edits if they exist.
.google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue answer_value = 3;- Specified by:
getAnswerValueOrBuilderin interfaceQaAnswerOrBuilder
-
getTagsList
public com.google.protobuf.ProtocolStringList getTagsList()User-defined list of arbitrary tags. Matches the value from QaScorecard.ScorecardQuestion.tags. Used for grouping/organization and for weighting the score of each answer.
repeated string tags = 5;- Specified by:
getTagsListin interfaceQaAnswerOrBuilder- Returns:
- A list containing the tags.
-
getTagsCount
public int getTagsCount()User-defined list of arbitrary tags. Matches the value from QaScorecard.ScorecardQuestion.tags. Used for grouping/organization and for weighting the score of each answer.
repeated string tags = 5;- Specified by:
getTagsCountin interfaceQaAnswerOrBuilder- Returns:
- The count of tags.
-
getTags
User-defined list of arbitrary tags. Matches the value from QaScorecard.ScorecardQuestion.tags. Used for grouping/organization and for weighting the score of each answer.
repeated string tags = 5;- Specified by:
getTagsin interfaceQaAnswerOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The tags at the given index.
-
getTagsBytes
public com.google.protobuf.ByteString getTagsBytes(int index) User-defined list of arbitrary tags. Matches the value from QaScorecard.ScorecardQuestion.tags. Used for grouping/organization and for weighting the score of each answer.
repeated string tags = 5;- Specified by:
getTagsBytesin interfaceQaAnswerOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the tags at the given index.
-
getAnswerSourcesList
List of all individual answers given to the question.
repeated .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource answer_sources = 8;- Specified by:
getAnswerSourcesListin interfaceQaAnswerOrBuilder
-
getAnswerSourcesOrBuilderList
List of all individual answers given to the question.
repeated .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource answer_sources = 8;- Specified by:
getAnswerSourcesOrBuilderListin interfaceQaAnswerOrBuilder
-
getAnswerSourcesCount
public int getAnswerSourcesCount()List of all individual answers given to the question.
repeated .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource answer_sources = 8;- Specified by:
getAnswerSourcesCountin interfaceQaAnswerOrBuilder
-
getAnswerSources
List of all individual answers given to the question.
repeated .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource answer_sources = 8;- Specified by:
getAnswerSourcesin interfaceQaAnswerOrBuilder
-
getAnswerSourcesOrBuilder
List of all individual answers given to the question.
repeated .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource answer_sources = 8;- Specified by:
getAnswerSourcesOrBuilderin interfaceQaAnswerOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static QaAnswer parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static QaAnswer parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static QaAnswer parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static QaAnswer parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static QaAnswer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static QaAnswer parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static QaAnswer parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static QaAnswer parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static QaAnswer parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected QaAnswer.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-