Class QaQuestion.AnswerChoice
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.contactcenterinsights.v1.QaQuestion.AnswerChoice
- All Implemented Interfaces:
QaQuestion.AnswerChoiceOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- QaQuestion
public static final class QaQuestion.AnswerChoice
extends com.google.protobuf.GeneratedMessage
implements QaQuestion.AnswerChoiceOrBuilder
Message representing a possible answer to the question.Protobuf type
google.cloud.contactcenterinsights.v1.QaQuestion.AnswerChoice- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classMessage representing a possible answer to the question.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 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 QaQuestion.AnswerChoicestatic 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)".doubleNumerical value.com.google.protobuf.Parser<QaQuestion.AnswerChoice>doublegetScore()Numerical score of the answer, used for generating the overall score of a QaScorecardResult.intString value.com.google.protobuf.ByteStringString value.booleanBoolean value.inthashCode()booleanA value of "Not Applicable (N/A)".booleanNumerical value.booleanhasScore()Numerical score of the answer, used for generating the overall score of a QaScorecardResult.booleanString value.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(QaQuestion.AnswerChoice prototype) protected QaQuestion.AnswerChoice.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static QaQuestion.AnswerChoiceparseDelimitedFrom(InputStream input) static QaQuestion.AnswerChoiceparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static QaQuestion.AnswerChoiceparseFrom(byte[] data) static QaQuestion.AnswerChoiceparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static QaQuestion.AnswerChoiceparseFrom(com.google.protobuf.ByteString data) static QaQuestion.AnswerChoiceparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static QaQuestion.AnswerChoiceparseFrom(com.google.protobuf.CodedInputStream input) static QaQuestion.AnswerChoiceparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static QaQuestion.AnswerChoiceparseFrom(InputStream input) static QaQuestion.AnswerChoiceparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static QaQuestion.AnswerChoiceparseFrom(ByteBuffer data) static QaQuestion.AnswerChoiceparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<QaQuestion.AnswerChoice>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:
-
-
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 interfaceQaQuestion.AnswerChoiceOrBuilder
-
hasStrValue
public boolean hasStrValue()String value.
string str_value = 2;- Specified by:
hasStrValuein interfaceQaQuestion.AnswerChoiceOrBuilder- Returns:
- Whether the strValue field is set.
-
getStrValue
String value.
string str_value = 2;- Specified by:
getStrValuein interfaceQaQuestion.AnswerChoiceOrBuilder- Returns:
- The strValue.
-
getStrValueBytes
public com.google.protobuf.ByteString getStrValueBytes()String value.
string str_value = 2;- Specified by:
getStrValueBytesin interfaceQaQuestion.AnswerChoiceOrBuilder- Returns:
- The bytes for strValue.
-
hasNumValue
public boolean hasNumValue()Numerical value.
double num_value = 3;- Specified by:
hasNumValuein interfaceQaQuestion.AnswerChoiceOrBuilder- Returns:
- Whether the numValue field is set.
-
getNumValue
public double getNumValue()Numerical value.
double num_value = 3;- Specified by:
getNumValuein interfaceQaQuestion.AnswerChoiceOrBuilder- Returns:
- The numValue.
-
hasBoolValue
public boolean hasBoolValue()Boolean value.
bool bool_value = 4;- Specified by:
hasBoolValuein interfaceQaQuestion.AnswerChoiceOrBuilder- Returns:
- Whether the boolValue field is set.
-
getBoolValue
public boolean getBoolValue()Boolean value.
bool bool_value = 4;- Specified by:
getBoolValuein interfaceQaQuestion.AnswerChoiceOrBuilder- Returns:
- The boolValue.
-
hasNaValue
public boolean hasNaValue()A value of "Not Applicable (N/A)". If provided, this field may only be set to `true`. If a question receives this answer, it will be excluded from any score calculations.
bool na_value = 5;- Specified by:
hasNaValuein interfaceQaQuestion.AnswerChoiceOrBuilder- Returns:
- Whether the naValue field is set.
-
getNaValue
public boolean getNaValue()A value of "Not Applicable (N/A)". If provided, this field may only be set to `true`. If a question receives this answer, it will be excluded from any score calculations.
bool na_value = 5;- Specified by:
getNaValuein interfaceQaQuestion.AnswerChoiceOrBuilder- Returns:
- The naValue.
-
getKey
A short string used as an identifier.
string key = 1;- Specified by:
getKeyin interfaceQaQuestion.AnswerChoiceOrBuilder- Returns:
- The key.
-
getKeyBytes
public com.google.protobuf.ByteString getKeyBytes()A short string used as an identifier.
string key = 1;- Specified by:
getKeyBytesin interfaceQaQuestion.AnswerChoiceOrBuilder- Returns:
- The bytes for key.
-
hasScore
public boolean hasScore()Numerical score of the answer, used for generating the overall score of a QaScorecardResult. If the answer uses na_value, this field is unused.
optional double score = 6;- Specified by:
hasScorein interfaceQaQuestion.AnswerChoiceOrBuilder- Returns:
- Whether the score field is set.
-
getScore
public double getScore()Numerical score of the answer, used for generating the overall score of a QaScorecardResult. If the answer uses na_value, this field is unused.
optional double score = 6;- Specified by:
getScorein interfaceQaQuestion.AnswerChoiceOrBuilder- Returns:
- The score.
-
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 QaQuestion.AnswerChoice parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static QaQuestion.AnswerChoice parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static QaQuestion.AnswerChoice parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static QaQuestion.AnswerChoice parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static QaQuestion.AnswerChoice parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static QaQuestion.AnswerChoice parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static QaQuestion.AnswerChoice parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static QaQuestion.AnswerChoice parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static QaQuestion.AnswerChoice parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static QaQuestion.AnswerChoice 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 QaQuestion.AnswerChoice.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
-