Class QaQuestion.AnswerChoice.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<QaQuestion.AnswerChoice.Builder>
com.google.cloud.contactcenterinsights.v1.QaQuestion.AnswerChoice.Builder
- All Implemented Interfaces:
QaQuestion.AnswerChoiceOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- QaQuestion.AnswerChoice
public static final class QaQuestion.AnswerChoice.Builder
extends com.google.protobuf.GeneratedMessage.Builder<QaQuestion.AnswerChoice.Builder>
implements QaQuestion.AnswerChoiceOrBuilder
Message representing a possible answer to the question.Protobuf type
google.cloud.contactcenterinsights.v1.QaQuestion.AnswerChoice-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Boolean value.clearKey()A short string used as an identifier.A value of "Not Applicable (N/A)".Numerical value.Numerical score of the answer, used for generating the overall score of a QaScorecardResult.String value.booleanBoolean value.static final com.google.protobuf.Descriptors.Descriptorcom.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.doublegetScore()Numerical score of the answer, used for generating the overall score of a QaScorecardResult.String value.com.google.protobuf.ByteStringString value.booleanBoolean value.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 booleanmergeFrom(QaQuestion.AnswerChoice other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setBoolValue(boolean value) Boolean value.A short string used as an identifier.setKeyBytes(com.google.protobuf.ByteString value) A short string used as an identifier.setNaValue(boolean value) A value of "Not Applicable (N/A)".setNumValue(double value) Numerical value.setScore(double value) Numerical score of the answer, used for generating the overall score of a QaScorecardResult.setStrValue(String value) String value.setStrValueBytes(com.google.protobuf.ByteString value) String value.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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.Builder<QaQuestion.AnswerChoice.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<QaQuestion.AnswerChoice.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<QaQuestion.AnswerChoice.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<QaQuestion.AnswerChoice.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<QaQuestion.AnswerChoice.Builder>
-
mergeFrom
public QaQuestion.AnswerChoice.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<QaQuestion.AnswerChoice.Builder>- Throws:
IOException
-
getValueCase
- Specified by:
getValueCasein interfaceQaQuestion.AnswerChoiceOrBuilder
-
clearValue
-
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.
-
setStrValue
String value.
string str_value = 2;- Parameters:
value- The strValue to set.- Returns:
- This builder for chaining.
-
clearStrValue
String value.
string str_value = 2;- Returns:
- This builder for chaining.
-
setStrValueBytes
String value.
string str_value = 2;- Parameters:
value- The bytes for strValue to set.- Returns:
- This builder for chaining.
-
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.
-
setNumValue
Numerical value.
double num_value = 3;- Parameters:
value- The numValue to set.- Returns:
- This builder for chaining.
-
clearNumValue
Numerical value.
double num_value = 3;- Returns:
- This builder for chaining.
-
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.
-
setBoolValue
Boolean value.
bool bool_value = 4;- Parameters:
value- The boolValue to set.- Returns:
- This builder for chaining.
-
clearBoolValue
Boolean value.
bool bool_value = 4;- Returns:
- This builder for chaining.
-
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.
-
setNaValue
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;- Parameters:
value- The naValue to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
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.
-
setKey
A short string used as an identifier.
string key = 1;- Parameters:
value- The key to set.- Returns:
- This builder for chaining.
-
clearKey
A short string used as an identifier.
string key = 1;- Returns:
- This builder for chaining.
-
setKeyBytes
A short string used as an identifier.
string key = 1;- Parameters:
value- The bytes for key to set.- Returns:
- This builder for chaining.
-
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.
-
setScore
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;- Parameters:
value- The score to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-