Class QaAnswer.AnswerValue
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue
- All Implemented Interfaces:
QaAnswer.AnswerValueOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- QaAnswer
public static final class QaAnswer.AnswerValue
extends com.google.protobuf.GeneratedMessage
implements QaAnswer.AnswerValueOrBuilder
Message for holding the value of a [QaAnswer][google.cloud.contactcenterinsights.v1.QaAnswer]. [QaQuestion.AnswerChoice][google.cloud.contactcenterinsights.v1.QaQuestion.AnswerChoice] defines the possible answer values for a question.Protobuf type
google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classMessage for holding the value of a [QaAnswer][google.cloud.contactcenterinsights.v1.QaAnswer].static enumNested 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 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 TypeMethodDescriptionbooleanbooleanBoolean value.static QaAnswer.AnswerValuestatic final com.google.protobuf.Descriptors.DescriptorgetKey()A short string used as an identifier.com.google.protobuf.ByteStringA short string used as an identifier.booleanA value of "Not Applicable (N/A)".doubleOutput only.doubleNumerical value.com.google.protobuf.Parser<QaAnswer.AnswerValue>doubleOutput only.doublegetScore()Output only.intString value.com.google.protobuf.ByteStringString value.booleanBoolean value.inthashCode()booleanA value of "Not Applicable (N/A)".booleanOutput only.booleanNumerical value.booleanOutput only.booleanhasScore()Output only.booleanString value.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic QaAnswer.AnswerValue.Builderstatic QaAnswer.AnswerValue.BuildernewBuilder(QaAnswer.AnswerValue prototype) protected QaAnswer.AnswerValue.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static QaAnswer.AnswerValueparseDelimitedFrom(InputStream input) static QaAnswer.AnswerValueparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static QaAnswer.AnswerValueparseFrom(byte[] data) static QaAnswer.AnswerValueparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static QaAnswer.AnswerValueparseFrom(com.google.protobuf.ByteString data) static QaAnswer.AnswerValueparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static QaAnswer.AnswerValueparseFrom(com.google.protobuf.CodedInputStream input) static QaAnswer.AnswerValueparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static QaAnswer.AnswerValueparseFrom(InputStream input) static QaAnswer.AnswerValueparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static QaAnswer.AnswerValueparseFrom(ByteBuffer data) static QaAnswer.AnswerValueparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<QaAnswer.AnswerValue>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
-
STR_VALUE_FIELD_NUMBER
public static final int STR_VALUE_FIELD_NUMBER- See Also:
-
NUM_VALUE_FIELD_NUMBER
public static final int NUM_VALUE_FIELD_NUMBER- See Also:
-
BOOL_VALUE_FIELD_NUMBER
public static final int BOOL_VALUE_FIELD_NUMBER- See Also:
-
NA_VALUE_FIELD_NUMBER
public static final int NA_VALUE_FIELD_NUMBER- See Also:
-
KEY_FIELD_NUMBER
public static final int KEY_FIELD_NUMBER- See Also:
-
SCORE_FIELD_NUMBER
public static final int SCORE_FIELD_NUMBER- See Also:
-
POTENTIAL_SCORE_FIELD_NUMBER
public static final int POTENTIAL_SCORE_FIELD_NUMBER- See Also:
-
NORMALIZED_SCORE_FIELD_NUMBER
public static final int NORMALIZED_SCORE_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
-
getValueCase
- Specified by:
getValueCasein interfaceQaAnswer.AnswerValueOrBuilder
-
hasStrValue
public boolean hasStrValue()String value.
string str_value = 2;- Specified by:
hasStrValuein interfaceQaAnswer.AnswerValueOrBuilder- Returns:
- Whether the strValue field is set.
-
getStrValue
String value.
string str_value = 2;- Specified by:
getStrValuein interfaceQaAnswer.AnswerValueOrBuilder- Returns:
- The strValue.
-
getStrValueBytes
public com.google.protobuf.ByteString getStrValueBytes()String value.
string str_value = 2;- Specified by:
getStrValueBytesin interfaceQaAnswer.AnswerValueOrBuilder- Returns:
- The bytes for strValue.
-
hasNumValue
public boolean hasNumValue()Numerical value.
double num_value = 3;- Specified by:
hasNumValuein interfaceQaAnswer.AnswerValueOrBuilder- Returns:
- Whether the numValue field is set.
-
getNumValue
public double getNumValue()Numerical value.
double num_value = 3;- Specified by:
getNumValuein interfaceQaAnswer.AnswerValueOrBuilder- Returns:
- The numValue.
-
hasBoolValue
public boolean hasBoolValue()Boolean value.
bool bool_value = 4;- Specified by:
hasBoolValuein interfaceQaAnswer.AnswerValueOrBuilder- Returns:
- Whether the boolValue field is set.
-
getBoolValue
public boolean getBoolValue()Boolean value.
bool bool_value = 4;- Specified by:
getBoolValuein interfaceQaAnswer.AnswerValueOrBuilder- Returns:
- The boolValue.
-
hasNaValue
public boolean hasNaValue()A value of "Not Applicable (N/A)". Should only ever be `true`.
bool na_value = 5;- Specified by:
hasNaValuein interfaceQaAnswer.AnswerValueOrBuilder- Returns:
- Whether the naValue field is set.
-
getNaValue
public boolean getNaValue()A value of "Not Applicable (N/A)". Should only ever be `true`.
bool na_value = 5;- Specified by:
getNaValuein interfaceQaAnswer.AnswerValueOrBuilder- Returns:
- The naValue.
-
getKey
A short string used as an identifier. Matches the value used in QaQuestion.AnswerChoice.key.
string key = 1;- Specified by:
getKeyin interfaceQaAnswer.AnswerValueOrBuilder- Returns:
- The key.
-
getKeyBytes
public com.google.protobuf.ByteString getKeyBytes()A short string used as an identifier. Matches the value used in QaQuestion.AnswerChoice.key.
string key = 1;- Specified by:
getKeyBytesin interfaceQaAnswer.AnswerValueOrBuilder- Returns:
- The bytes for key.
-
hasScore
public boolean hasScore()Output only. Numerical score of the answer.
optional double score = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasScorein interfaceQaAnswer.AnswerValueOrBuilder- Returns:
- Whether the score field is set.
-
getScore
public double getScore()Output only. Numerical score of the answer.
optional double score = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getScorein interfaceQaAnswer.AnswerValueOrBuilder- Returns:
- The score.
-
hasPotentialScore
public boolean hasPotentialScore()Output only. The maximum potential score of the question.
optional double potential_score = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasPotentialScorein interfaceQaAnswer.AnswerValueOrBuilder- Returns:
- Whether the potentialScore field is set.
-
getPotentialScore
public double getPotentialScore()Output only. The maximum potential score of the question.
optional double potential_score = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPotentialScorein interfaceQaAnswer.AnswerValueOrBuilder- Returns:
- The potentialScore.
-
hasNormalizedScore
public boolean hasNormalizedScore()Output only. Normalized score of the questions. Calculated as score / potential_score.
optional double normalized_score = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasNormalizedScorein interfaceQaAnswer.AnswerValueOrBuilder- Returns:
- Whether the normalizedScore field is set.
-
getNormalizedScore
public double getNormalizedScore()Output only. Normalized score of the questions. Calculated as score / potential_score.
optional double normalized_score = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNormalizedScorein interfaceQaAnswer.AnswerValueOrBuilder- Returns:
- The normalizedScore.
-
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.AnswerValue parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static QaAnswer.AnswerValue parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static QaAnswer.AnswerValue parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static QaAnswer.AnswerValue 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.AnswerValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static QaAnswer.AnswerValue 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.AnswerValue parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static QaAnswer.AnswerValue parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static QaAnswer.AnswerValue parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static QaAnswer.AnswerValue 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.AnswerValue.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
-