public static final class QaQuestion.AnswerChoice.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<QaQuestion.AnswerChoice.Builder> implements QaQuestion.AnswerChoiceOrBuilder
Message representing a possible answer to the question.Protobuf type
google.cloud.contactcenterinsights.v1.QaQuestion.AnswerChoice| Modifier and Type | Method and Description |
|---|---|
QaQuestion.AnswerChoice.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
QaQuestion.AnswerChoice |
build() |
QaQuestion.AnswerChoice |
buildPartial() |
QaQuestion.AnswerChoice.Builder |
clear() |
QaQuestion.AnswerChoice.Builder |
clearBoolValue()
Boolean value.
|
QaQuestion.AnswerChoice.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
QaQuestion.AnswerChoice.Builder |
clearKey()
A short string used as an identifier.
|
QaQuestion.AnswerChoice.Builder |
clearNaValue()
A value of "Not Applicable (N/A)".
|
QaQuestion.AnswerChoice.Builder |
clearNumValue()
Numerical value.
|
QaQuestion.AnswerChoice.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
QaQuestion.AnswerChoice.Builder |
clearScore()
Numerical score of the answer, used for generating the overall score of
a QaScorecardResult.
|
QaQuestion.AnswerChoice.Builder |
clearStrValue()
String value.
|
QaQuestion.AnswerChoice.Builder |
clearValue() |
QaQuestion.AnswerChoice.Builder |
clone() |
boolean |
getBoolValue()
Boolean value.
|
QaQuestion.AnswerChoice |
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 |
getNumValue()
Numerical value.
|
double |
getScore()
Numerical score of the answer, used for generating the overall score of
a QaScorecardResult.
|
String |
getStrValue()
String value.
|
com.google.protobuf.ByteString |
getStrValueBytes()
String value.
|
QaQuestion.AnswerChoice.ValueCase |
getValueCase() |
boolean |
hasBoolValue()
Boolean value.
|
boolean |
hasNaValue()
A value of "Not Applicable (N/A)".
|
boolean |
hasNumValue()
Numerical value.
|
boolean |
hasScore()
Numerical score of the answer, used for generating the overall score of
a QaScorecardResult.
|
boolean |
hasStrValue()
String value.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
QaQuestion.AnswerChoice.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
QaQuestion.AnswerChoice.Builder |
mergeFrom(com.google.protobuf.Message other) |
QaQuestion.AnswerChoice.Builder |
mergeFrom(QaQuestion.AnswerChoice other) |
QaQuestion.AnswerChoice.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
QaQuestion.AnswerChoice.Builder |
setBoolValue(boolean value)
Boolean value.
|
QaQuestion.AnswerChoice.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
QaQuestion.AnswerChoice.Builder |
setKey(String value)
A short string used as an identifier.
|
QaQuestion.AnswerChoice.Builder |
setKeyBytes(com.google.protobuf.ByteString value)
A short string used as an identifier.
|
QaQuestion.AnswerChoice.Builder |
setNaValue(boolean value)
A value of "Not Applicable (N/A)".
|
QaQuestion.AnswerChoice.Builder |
setNumValue(double value)
Numerical value.
|
QaQuestion.AnswerChoice.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
QaQuestion.AnswerChoice.Builder |
setScore(double value)
Numerical score of the answer, used for generating the overall score of
a QaScorecardResult.
|
QaQuestion.AnswerChoice.Builder |
setStrValue(String value)
String value.
|
QaQuestion.AnswerChoice.Builder |
setStrValueBytes(com.google.protobuf.ByteString value)
String value.
|
QaQuestion.AnswerChoice.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<QaQuestion.AnswerChoice.Builder>public QaQuestion.AnswerChoice.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<QaQuestion.AnswerChoice.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<QaQuestion.AnswerChoice.Builder>public QaQuestion.AnswerChoice getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic QaQuestion.AnswerChoice build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic QaQuestion.AnswerChoice buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic QaQuestion.AnswerChoice.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<QaQuestion.AnswerChoice.Builder>public QaQuestion.AnswerChoice.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<QaQuestion.AnswerChoice.Builder>public QaQuestion.AnswerChoice.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<QaQuestion.AnswerChoice.Builder>public QaQuestion.AnswerChoice.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<QaQuestion.AnswerChoice.Builder>public QaQuestion.AnswerChoice.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<QaQuestion.AnswerChoice.Builder>public QaQuestion.AnswerChoice.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<QaQuestion.AnswerChoice.Builder>public QaQuestion.AnswerChoice.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<QaQuestion.AnswerChoice.Builder>public QaQuestion.AnswerChoice.Builder mergeFrom(QaQuestion.AnswerChoice other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<QaQuestion.AnswerChoice.Builder>public QaQuestion.AnswerChoice.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<QaQuestion.AnswerChoice.Builder>IOExceptionpublic QaQuestion.AnswerChoice.ValueCase getValueCase()
getValueCase in interface QaQuestion.AnswerChoiceOrBuilderpublic QaQuestion.AnswerChoice.Builder clearValue()
public boolean hasStrValue()
String value.
string str_value = 2;hasStrValue in interface QaQuestion.AnswerChoiceOrBuilderpublic String getStrValue()
String value.
string str_value = 2;getStrValue in interface QaQuestion.AnswerChoiceOrBuilderpublic com.google.protobuf.ByteString getStrValueBytes()
String value.
string str_value = 2;getStrValueBytes in interface QaQuestion.AnswerChoiceOrBuilderpublic QaQuestion.AnswerChoice.Builder setStrValue(String value)
String value.
string str_value = 2;value - The strValue to set.public QaQuestion.AnswerChoice.Builder clearStrValue()
String value.
string str_value = 2;public QaQuestion.AnswerChoice.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 QaQuestion.AnswerChoiceOrBuilderpublic double getNumValue()
Numerical value.
double num_value = 3;getNumValue in interface QaQuestion.AnswerChoiceOrBuilderpublic QaQuestion.AnswerChoice.Builder setNumValue(double value)
Numerical value.
double num_value = 3;value - The numValue to set.public QaQuestion.AnswerChoice.Builder clearNumValue()
Numerical value.
double num_value = 3;public boolean hasBoolValue()
Boolean value.
bool bool_value = 4;hasBoolValue in interface QaQuestion.AnswerChoiceOrBuilderpublic boolean getBoolValue()
Boolean value.
bool bool_value = 4;getBoolValue in interface QaQuestion.AnswerChoiceOrBuilderpublic QaQuestion.AnswerChoice.Builder setBoolValue(boolean value)
Boolean value.
bool bool_value = 4;value - The boolValue to set.public QaQuestion.AnswerChoice.Builder clearBoolValue()
Boolean value.
bool bool_value = 4;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;hasNaValue in interface QaQuestion.AnswerChoiceOrBuilderpublic 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;getNaValue in interface QaQuestion.AnswerChoiceOrBuilderpublic QaQuestion.AnswerChoice.Builder setNaValue(boolean value)
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;value - The naValue to set.public QaQuestion.AnswerChoice.Builder clearNaValue()
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;public String getKey()
A short string used as an identifier.
string key = 1;getKey in interface QaQuestion.AnswerChoiceOrBuilderpublic com.google.protobuf.ByteString getKeyBytes()
A short string used as an identifier.
string key = 1;getKeyBytes in interface QaQuestion.AnswerChoiceOrBuilderpublic QaQuestion.AnswerChoice.Builder setKey(String value)
A short string used as an identifier.
string key = 1;value - The key to set.public QaQuestion.AnswerChoice.Builder clearKey()
A short string used as an identifier.
string key = 1;public QaQuestion.AnswerChoice.Builder setKeyBytes(com.google.protobuf.ByteString value)
A short string used as an identifier.
string key = 1;value - The bytes for key to set.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;hasScore in interface QaQuestion.AnswerChoiceOrBuilderpublic 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;getScore in interface QaQuestion.AnswerChoiceOrBuilderpublic QaQuestion.AnswerChoice.Builder setScore(double value)
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;value - The score to set.public QaQuestion.AnswerChoice.Builder clearScore()
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;public final QaQuestion.AnswerChoice.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<QaQuestion.AnswerChoice.Builder>public final QaQuestion.AnswerChoice.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<QaQuestion.AnswerChoice.Builder>Copyright © 2025 Google LLC. All rights reserved.