Interface QaAnswer.AnswerValueOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
QaAnswer.AnswerValue,QaAnswer.AnswerValue.Builder
- Enclosing class:
- QaAnswer
public static interface QaAnswer.AnswerValueOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleanBoolean value.getKey()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.doubleOutput only.doublegetScore()Output only.String value.com.google.protobuf.ByteStringString value.booleanBoolean value.booleanA value of "Not Applicable (N/A)".booleanOutput only.booleanNumerical value.booleanOutput only.booleanhasScore()Output only.booleanString value.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasStrValue
boolean hasStrValue()String value.
string str_value = 2;- Returns:
- Whether the strValue field is set.
-
getStrValue
String getStrValue()String value.
string str_value = 2;- Returns:
- The strValue.
-
getStrValueBytes
com.google.protobuf.ByteString getStrValueBytes()String value.
string str_value = 2;- Returns:
- The bytes for strValue.
-
hasNumValue
boolean hasNumValue()Numerical value.
double num_value = 3;- Returns:
- Whether the numValue field is set.
-
getNumValue
double getNumValue()Numerical value.
double num_value = 3;- Returns:
- The numValue.
-
hasBoolValue
boolean hasBoolValue()Boolean value.
bool bool_value = 4;- Returns:
- Whether the boolValue field is set.
-
getBoolValue
boolean getBoolValue()Boolean value.
bool bool_value = 4;- Returns:
- The boolValue.
-
hasNaValue
boolean hasNaValue()A value of "Not Applicable (N/A)". Should only ever be `true`.
bool na_value = 5;- Returns:
- Whether the naValue field is set.
-
getNaValue
boolean getNaValue()A value of "Not Applicable (N/A)". Should only ever be `true`.
bool na_value = 5;- Returns:
- The naValue.
-
getKey
String getKey()A short string used as an identifier. Matches the value used in QaQuestion.AnswerChoice.key.
string key = 1;- Returns:
- The key.
-
getKeyBytes
com.google.protobuf.ByteString getKeyBytes()A short string used as an identifier. Matches the value used in QaQuestion.AnswerChoice.key.
string key = 1;- Returns:
- The bytes for key.
-
hasScore
boolean hasScore()Output only. Numerical score of the answer.
optional double score = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- Whether the score field is set.
-
getScore
double getScore()Output only. Numerical score of the answer.
optional double score = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The score.
-
hasPotentialScore
boolean hasPotentialScore()Output only. The maximum potential score of the question.
optional double potential_score = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- Whether the potentialScore field is set.
-
getPotentialScore
double getPotentialScore()Output only. The maximum potential score of the question.
optional double potential_score = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The potentialScore.
-
hasNormalizedScore
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:
- Whether the normalizedScore field is set.
-
getNormalizedScore
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:
- The normalizedScore.
-
getValueCase
QaAnswer.AnswerValue.ValueCase getValueCase()
-