public static final class QaAnswer.AnswerValue extends GeneratedMessage implements QaAnswer.AnswerValueOrBuilder
Message for holding the value of a
QaAnswer.
QaQuestion.AnswerChoice
defines the possible answer values for a question.
Protobuf type google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
public static final int BOOL_VALUE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int KEY_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int NA_VALUE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int NORMALIZED_SCORE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int NUM_VALUE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int POTENTIAL_SCORE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int SCORE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int STR_VALUE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
public static QaAnswer.AnswerValue getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static QaAnswer.AnswerValue.Builder newBuilder()
public static QaAnswer.AnswerValue.Builder newBuilder(QaAnswer.AnswerValue prototype)
public static QaAnswer.AnswerValue parseDelimitedFrom(InputStream input)
public static QaAnswer.AnswerValue parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static QaAnswer.AnswerValue parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
public static QaAnswer.AnswerValue parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static QaAnswer.AnswerValue parseFrom(ByteString data)
public static QaAnswer.AnswerValue parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static QaAnswer.AnswerValue parseFrom(CodedInputStream input)
public static QaAnswer.AnswerValue parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static QaAnswer.AnswerValue parseFrom(InputStream input)
public static QaAnswer.AnswerValue parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static QaAnswer.AnswerValue parseFrom(ByteBuffer data)
public static QaAnswer.AnswerValue parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<QaAnswer.AnswerValue> parser()
Methods
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
public boolean getBoolValue()
Boolean value.
bool bool_value = 4;
| Returns |
| Type |
Description |
boolean |
The boolValue.
|
public QaAnswer.AnswerValue getDefaultInstanceForType()
A short string used as an identifier. Matches the value used in
QaQuestion.AnswerChoice.key.
string key = 1;
| Returns |
| Type |
Description |
String |
The key.
|
public ByteString getKeyBytes()
A short string used as an identifier. Matches the value used in
QaQuestion.AnswerChoice.key.
string key = 1;
| Returns |
| Type |
Description |
ByteString |
The bytes for key.
|
public boolean getNaValue()
A value of "Not Applicable (N/A)". Should only ever be true.
bool na_value = 5;
| Returns |
| Type |
Description |
boolean |
The naValue.
|
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];
| Returns |
| Type |
Description |
double |
The normalizedScore.
|
public double getNumValue()
Numerical value.
double num_value = 3;
| Returns |
| Type |
Description |
double |
The numValue.
|
public Parser<QaAnswer.AnswerValue> getParserForType()
Overrides
public double getPotentialScore()
Output only. The maximum potential score of the question.
optional double potential_score = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
double |
The potentialScore.
|
Output only. Numerical score of the answer.
optional double score = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
double |
The score.
|
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
public String getStrValue()
String value.
string str_value = 2;
| Returns |
| Type |
Description |
String |
The strValue.
|
public ByteString getStrValueBytes()
String value.
string str_value = 2;
| Returns |
| Type |
Description |
ByteString |
The bytes for strValue.
|
public QaAnswer.AnswerValue.ValueCase getValueCase()
public boolean hasBoolValue()
Boolean value.
bool bool_value = 4;
| Returns |
| Type |
Description |
boolean |
Whether the boolValue field is set.
|
public boolean hasNaValue()
A value of "Not Applicable (N/A)". Should only ever be true.
bool na_value = 5;
| Returns |
| Type |
Description |
boolean |
Whether the naValue field is set.
|
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];
| Returns |
| Type |
Description |
boolean |
Whether the normalizedScore field is set.
|
public boolean hasNumValue()
Numerical value.
double num_value = 3;
| Returns |
| Type |
Description |
boolean |
Whether the numValue field is set.
|
public boolean hasPotentialScore()
Output only. The maximum potential score of the question.
optional double potential_score = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
boolean |
Whether the potentialScore field is set.
|
public boolean hasScore()
Output only. Numerical score of the answer.
optional double score = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
boolean |
Whether the score field is set.
|
public boolean hasStrValue()
String value.
string str_value = 2;
| Returns |
| Type |
Description |
boolean |
Whether the strValue field is set.
|
| Returns |
| Type |
Description |
int |
|
Overrides
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public QaAnswer.AnswerValue.Builder newBuilderForType()
protected QaAnswer.AnswerValue.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
public QaAnswer.AnswerValue.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides