Class QaAnswer.AnswerValue.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<QaAnswer.AnswerValue.Builder>
com.google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue.Builder
- All Implemented Interfaces:
QaAnswer.AnswerValueOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- QaAnswer.AnswerValue
public static final class QaAnswer.AnswerValue.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Boolean value.clearKey()A short string used as an identifier.A value of "Not Applicable (N/A)".Output only.Numerical value.Output only.Output only.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)".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.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(QaAnswer.AnswerValue 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)".setNormalizedScore(double value) Output only.setNumValue(double value) Numerical value.setPotentialScore(double value) Output only.setScore(double value) Output only.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<QaAnswer.AnswerValue.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<QaAnswer.AnswerValue.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<QaAnswer.AnswerValue.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<QaAnswer.AnswerValue.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<QaAnswer.AnswerValue.Builder>
-
mergeFrom
public QaAnswer.AnswerValue.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<QaAnswer.AnswerValue.Builder>- Throws:
IOException
-
getValueCase
- Specified by:
getValueCasein interfaceQaAnswer.AnswerValueOrBuilder
-
clearValue
-
hasStrValue
public boolean hasStrValue()String value.
string str_value = 2;- Specified by:
hasStrValuein interfaceQaAnswer.AnswerValueOrBuilder- Returns:
- Whether the strValue field is set.
-
getStrValue
String value.
string str_value = 2;- Specified by:
getStrValuein interfaceQaAnswer.AnswerValueOrBuilder- Returns:
- The strValue.
-
getStrValueBytes
public com.google.protobuf.ByteString getStrValueBytes()String value.
string str_value = 2;- Specified by:
getStrValueBytesin interfaceQaAnswer.AnswerValueOrBuilder- 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 interfaceQaAnswer.AnswerValueOrBuilder- Returns:
- Whether the numValue field is set.
-
getNumValue
public double getNumValue()Numerical value.
double num_value = 3;- Specified by:
getNumValuein interfaceQaAnswer.AnswerValueOrBuilder- 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 interfaceQaAnswer.AnswerValueOrBuilder- Returns:
- Whether the boolValue field is set.
-
getBoolValue
public boolean getBoolValue()Boolean value.
bool bool_value = 4;- Specified by:
getBoolValuein interfaceQaAnswer.AnswerValueOrBuilder- 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)". Should only ever be `true`.
bool na_value = 5;- Specified by:
hasNaValuein interfaceQaAnswer.AnswerValueOrBuilder- Returns:
- Whether the naValue field is set.
-
getNaValue
public boolean getNaValue()A value of "Not Applicable (N/A)". Should only ever be `true`.
bool na_value = 5;- Specified by:
getNaValuein interfaceQaAnswer.AnswerValueOrBuilder- Returns:
- The naValue.
-
setNaValue
A value of "Not Applicable (N/A)". Should only ever be `true`.
bool na_value = 5;- Parameters:
value- The naValue to set.- Returns:
- This builder for chaining.
-
clearNaValue
A value of "Not Applicable (N/A)". Should only ever be `true`.
bool na_value = 5;- Returns:
- This builder for chaining.
-
getKey
A short string used as an identifier. Matches the value used in QaQuestion.AnswerChoice.key.
string key = 1;- Specified by:
getKeyin interfaceQaAnswer.AnswerValueOrBuilder- Returns:
- The key.
-
getKeyBytes
public com.google.protobuf.ByteString getKeyBytes()A short string used as an identifier. Matches the value used in QaQuestion.AnswerChoice.key.
string key = 1;- Specified by:
getKeyBytesin interfaceQaAnswer.AnswerValueOrBuilder- Returns:
- The bytes for key.
-
setKey
A short string used as an identifier. Matches the value used in QaQuestion.AnswerChoice.key.
string key = 1;- Parameters:
value- The key to set.- Returns:
- This builder for chaining.
-
clearKey
A short string used as an identifier. Matches the value used in QaQuestion.AnswerChoice.key.
string key = 1;- Returns:
- This builder for chaining.
-
setKeyBytes
A short string used as an identifier. Matches the value used in QaQuestion.AnswerChoice.key.
string key = 1;- Parameters:
value- The bytes for key to set.- Returns:
- This builder for chaining.
-
hasScore
public boolean hasScore()Output only. Numerical score of the answer.
optional double score = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasScorein interfaceQaAnswer.AnswerValueOrBuilder- Returns:
- Whether the score field is set.
-
getScore
public double getScore()Output only. Numerical score of the answer.
optional double score = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getScorein interfaceQaAnswer.AnswerValueOrBuilder- Returns:
- The score.
-
setScore
Output only. Numerical score of the answer.
optional double score = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The score to set.- Returns:
- This builder for chaining.
-
clearScore
Output only. Numerical score of the answer.
optional double score = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
hasPotentialScore
public boolean hasPotentialScore()Output only. The maximum potential score of the question.
optional double potential_score = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasPotentialScorein interfaceQaAnswer.AnswerValueOrBuilder- Returns:
- Whether the potentialScore field is set.
-
getPotentialScore
public double getPotentialScore()Output only. The maximum potential score of the question.
optional double potential_score = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPotentialScorein interfaceQaAnswer.AnswerValueOrBuilder- Returns:
- The potentialScore.
-
setPotentialScore
Output only. The maximum potential score of the question.
optional double potential_score = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The potentialScore to set.- Returns:
- This builder for chaining.
-
clearPotentialScore
Output only. The maximum potential score of the question.
optional double potential_score = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
hasNormalizedScore
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];- Specified by:
hasNormalizedScorein interfaceQaAnswer.AnswerValueOrBuilder- Returns:
- Whether the normalizedScore field is set.
-
getNormalizedScore
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];- Specified by:
getNormalizedScorein interfaceQaAnswer.AnswerValueOrBuilder- Returns:
- The normalizedScore.
-
setNormalizedScore
Output only. Normalized score of the questions. Calculated as score / potential_score.
optional double normalized_score = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The normalizedScore to set.- Returns:
- This builder for chaining.
-
clearNormalizedScore
Output only. Normalized score of the questions. Calculated as score / potential_score.
optional double normalized_score = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-