public static final class QaAnswer.AnswerValue.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<QaAnswer.AnswerValue.Builder> 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| Modifier and Type | Method and Description |
|---|---|
QaAnswer.AnswerValue.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
QaAnswer.AnswerValue |
build() |
QaAnswer.AnswerValue |
buildPartial() |
QaAnswer.AnswerValue.Builder |
clear() |
QaAnswer.AnswerValue.Builder |
clearBoolValue()
Boolean value.
|
QaAnswer.AnswerValue.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
QaAnswer.AnswerValue.Builder |
clearKey()
A short string used as an identifier.
|
QaAnswer.AnswerValue.Builder |
clearNaValue()
A value of "Not Applicable (N/A)".
|
QaAnswer.AnswerValue.Builder |
clearNormalizedScore()
Output only.
|
QaAnswer.AnswerValue.Builder |
clearNumValue()
Numerical value.
|
QaAnswer.AnswerValue.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
QaAnswer.AnswerValue.Builder |
clearPotentialScore()
Output only.
|
QaAnswer.AnswerValue.Builder |
clearScore()
Output only.
|
QaAnswer.AnswerValue.Builder |
clearStrValue()
String value.
|
QaAnswer.AnswerValue.Builder |
clearValue() |
QaAnswer.AnswerValue.Builder |
clone() |
boolean |
getBoolValue()
Boolean value.
|
QaAnswer.AnswerValue |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getKey()
A short string used as an identifier.
|
com.google.protobuf.ByteString |
getKeyBytes()
A short string used as an identifier.
|
boolean |
getNaValue()
A value of "Not Applicable (N/A)".
|
double |
getNormalizedScore()
Output only.
|
double |
getNumValue()
Numerical value.
|
double |
getPotentialScore()
Output only.
|
double |
getScore()
Output only.
|
String |
getStrValue()
String value.
|
com.google.protobuf.ByteString |
getStrValueBytes()
String value.
|
QaAnswer.AnswerValue.ValueCase |
getValueCase() |
boolean |
hasBoolValue()
Boolean value.
|
boolean |
hasNaValue()
A value of "Not Applicable (N/A)".
|
boolean |
hasNormalizedScore()
Output only.
|
boolean |
hasNumValue()
Numerical value.
|
boolean |
hasPotentialScore()
Output only.
|
boolean |
hasScore()
Output only.
|
boolean |
hasStrValue()
String value.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
QaAnswer.AnswerValue.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
QaAnswer.AnswerValue.Builder |
mergeFrom(com.google.protobuf.Message other) |
QaAnswer.AnswerValue.Builder |
mergeFrom(QaAnswer.AnswerValue other) |
QaAnswer.AnswerValue.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
QaAnswer.AnswerValue.Builder |
setBoolValue(boolean value)
Boolean value.
|
QaAnswer.AnswerValue.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
QaAnswer.AnswerValue.Builder |
setKey(String value)
A short string used as an identifier.
|
QaAnswer.AnswerValue.Builder |
setKeyBytes(com.google.protobuf.ByteString value)
A short string used as an identifier.
|
QaAnswer.AnswerValue.Builder |
setNaValue(boolean value)
A value of "Not Applicable (N/A)".
|
QaAnswer.AnswerValue.Builder |
setNormalizedScore(double value)
Output only.
|
QaAnswer.AnswerValue.Builder |
setNumValue(double value)
Numerical value.
|
QaAnswer.AnswerValue.Builder |
setPotentialScore(double value)
Output only.
|
QaAnswer.AnswerValue.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
QaAnswer.AnswerValue.Builder |
setScore(double value)
Output only.
|
QaAnswer.AnswerValue.Builder |
setStrValue(String value)
String value.
|
QaAnswer.AnswerValue.Builder |
setStrValueBytes(com.google.protobuf.ByteString value)
String value.
|
QaAnswer.AnswerValue.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<QaAnswer.AnswerValue.Builder>public QaAnswer.AnswerValue.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<QaAnswer.AnswerValue.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<QaAnswer.AnswerValue.Builder>public QaAnswer.AnswerValue getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic QaAnswer.AnswerValue build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic QaAnswer.AnswerValue buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic QaAnswer.AnswerValue.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<QaAnswer.AnswerValue.Builder>public QaAnswer.AnswerValue.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<QaAnswer.AnswerValue.Builder>public QaAnswer.AnswerValue.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<QaAnswer.AnswerValue.Builder>public QaAnswer.AnswerValue.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<QaAnswer.AnswerValue.Builder>public QaAnswer.AnswerValue.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<QaAnswer.AnswerValue.Builder>public QaAnswer.AnswerValue.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<QaAnswer.AnswerValue.Builder>public QaAnswer.AnswerValue.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<QaAnswer.AnswerValue.Builder>public QaAnswer.AnswerValue.Builder mergeFrom(QaAnswer.AnswerValue other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<QaAnswer.AnswerValue.Builder>public QaAnswer.AnswerValue.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<QaAnswer.AnswerValue.Builder>IOExceptionpublic QaAnswer.AnswerValue.ValueCase getValueCase()
getValueCase in interface QaAnswer.AnswerValueOrBuilderpublic QaAnswer.AnswerValue.Builder clearValue()
public boolean hasStrValue()
String value.
string str_value = 2;hasStrValue in interface QaAnswer.AnswerValueOrBuilderpublic String getStrValue()
String value.
string str_value = 2;getStrValue in interface QaAnswer.AnswerValueOrBuilderpublic com.google.protobuf.ByteString getStrValueBytes()
String value.
string str_value = 2;getStrValueBytes in interface QaAnswer.AnswerValueOrBuilderpublic QaAnswer.AnswerValue.Builder setStrValue(String value)
String value.
string str_value = 2;value - The strValue to set.public QaAnswer.AnswerValue.Builder clearStrValue()
String value.
string str_value = 2;public QaAnswer.AnswerValue.Builder setStrValueBytes(com.google.protobuf.ByteString value)
String value.
string str_value = 2;value - The bytes for strValue to set.public boolean hasNumValue()
Numerical value.
double num_value = 3;hasNumValue in interface QaAnswer.AnswerValueOrBuilderpublic double getNumValue()
Numerical value.
double num_value = 3;getNumValue in interface QaAnswer.AnswerValueOrBuilderpublic QaAnswer.AnswerValue.Builder setNumValue(double value)
Numerical value.
double num_value = 3;value - The numValue to set.public QaAnswer.AnswerValue.Builder clearNumValue()
Numerical value.
double num_value = 3;public boolean hasBoolValue()
Boolean value.
bool bool_value = 4;hasBoolValue in interface QaAnswer.AnswerValueOrBuilderpublic boolean getBoolValue()
Boolean value.
bool bool_value = 4;getBoolValue in interface QaAnswer.AnswerValueOrBuilderpublic QaAnswer.AnswerValue.Builder setBoolValue(boolean value)
Boolean value.
bool bool_value = 4;value - The boolValue to set.public QaAnswer.AnswerValue.Builder clearBoolValue()
Boolean value.
bool bool_value = 4;public boolean hasNaValue()
A value of "Not Applicable (N/A)". Should only ever be `true`.
bool na_value = 5;hasNaValue in interface QaAnswer.AnswerValueOrBuilderpublic boolean getNaValue()
A value of "Not Applicable (N/A)". Should only ever be `true`.
bool na_value = 5;getNaValue in interface QaAnswer.AnswerValueOrBuilderpublic QaAnswer.AnswerValue.Builder setNaValue(boolean value)
A value of "Not Applicable (N/A)". Should only ever be `true`.
bool na_value = 5;value - The naValue to set.public QaAnswer.AnswerValue.Builder clearNaValue()
A value of "Not Applicable (N/A)". Should only ever be `true`.
bool na_value = 5;public String getKey()
A short string used as an identifier. Matches the value used in QaQuestion.AnswerChoice.key.
string key = 1;getKey in interface QaAnswer.AnswerValueOrBuilderpublic com.google.protobuf.ByteString getKeyBytes()
A short string used as an identifier. Matches the value used in QaQuestion.AnswerChoice.key.
string key = 1;getKeyBytes in interface QaAnswer.AnswerValueOrBuilderpublic QaAnswer.AnswerValue.Builder setKey(String value)
A short string used as an identifier. Matches the value used in QaQuestion.AnswerChoice.key.
string key = 1;value - The key to set.public QaAnswer.AnswerValue.Builder clearKey()
A short string used as an identifier. Matches the value used in QaQuestion.AnswerChoice.key.
string key = 1;public QaAnswer.AnswerValue.Builder setKeyBytes(com.google.protobuf.ByteString value)
A short string used as an identifier. Matches the value used in QaQuestion.AnswerChoice.key.
string key = 1;value - The bytes for key to set.public boolean hasScore()
Output only. Numerical score of the answer.
optional double score = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];hasScore in interface QaAnswer.AnswerValueOrBuilderpublic double getScore()
Output only. Numerical score of the answer.
optional double score = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];getScore in interface QaAnswer.AnswerValueOrBuilderpublic QaAnswer.AnswerValue.Builder setScore(double value)
Output only. Numerical score of the answer.
optional double score = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The score to set.public QaAnswer.AnswerValue.Builder clearScore()
Output only. Numerical score of the answer.
optional double score = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];public boolean hasPotentialScore()
Output only. The maximum potential score of the question.
optional double potential_score = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasPotentialScore in interface QaAnswer.AnswerValueOrBuilderpublic double getPotentialScore()
Output only. The maximum potential score of the question.
optional double potential_score = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
getPotentialScore in interface QaAnswer.AnswerValueOrBuilderpublic QaAnswer.AnswerValue.Builder setPotentialScore(double value)
Output only. The maximum potential score of the question.
optional double potential_score = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
value - The potentialScore to set.public QaAnswer.AnswerValue.Builder clearPotentialScore()
Output only. The maximum potential score of the question.
optional double potential_score = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
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];
hasNormalizedScore in interface QaAnswer.AnswerValueOrBuilderpublic 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];
getNormalizedScore in interface QaAnswer.AnswerValueOrBuilderpublic QaAnswer.AnswerValue.Builder setNormalizedScore(double value)
Output only. Normalized score of the questions. Calculated as score / potential_score.
optional double normalized_score = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
value - The normalizedScore to set.public QaAnswer.AnswerValue.Builder clearNormalizedScore()
Output only. Normalized score of the questions. Calculated as score / potential_score.
optional double normalized_score = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
public final QaAnswer.AnswerValue.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<QaAnswer.AnswerValue.Builder>public final QaAnswer.AnswerValue.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<QaAnswer.AnswerValue.Builder>Copyright © 2025 Google LLC. All rights reserved.