Class QaAnswer.AnswerValue

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue
All Implemented Interfaces:
QaAnswer.AnswerValueOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
QaAnswer

public static final class QaAnswer.AnswerValue extends com.google.protobuf.GeneratedMessage 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
See Also:
  • Field Details

  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getValueCase

      public QaAnswer.AnswerValue.ValueCase getValueCase()
      Specified by:
      getValueCase in interface QaAnswer.AnswerValueOrBuilder
    • hasStrValue

      public boolean hasStrValue()
       String value.
       
      string str_value = 2;
      Specified by:
      hasStrValue in interface QaAnswer.AnswerValueOrBuilder
      Returns:
      Whether the strValue field is set.
    • getStrValue

      public String getStrValue()
       String value.
       
      string str_value = 2;
      Specified by:
      getStrValue in interface QaAnswer.AnswerValueOrBuilder
      Returns:
      The strValue.
    • getStrValueBytes

      public com.google.protobuf.ByteString getStrValueBytes()
       String value.
       
      string str_value = 2;
      Specified by:
      getStrValueBytes in interface QaAnswer.AnswerValueOrBuilder
      Returns:
      The bytes for strValue.
    • hasNumValue

      public boolean hasNumValue()
       Numerical value.
       
      double num_value = 3;
      Specified by:
      hasNumValue in interface QaAnswer.AnswerValueOrBuilder
      Returns:
      Whether the numValue field is set.
    • getNumValue

      public double getNumValue()
       Numerical value.
       
      double num_value = 3;
      Specified by:
      getNumValue in interface QaAnswer.AnswerValueOrBuilder
      Returns:
      The numValue.
    • hasBoolValue

      public boolean hasBoolValue()
       Boolean value.
       
      bool bool_value = 4;
      Specified by:
      hasBoolValue in interface QaAnswer.AnswerValueOrBuilder
      Returns:
      Whether the boolValue field is set.
    • getBoolValue

      public boolean getBoolValue()
       Boolean value.
       
      bool bool_value = 4;
      Specified by:
      getBoolValue in interface QaAnswer.AnswerValueOrBuilder
      Returns:
      The boolValue.
    • hasNaValue

      public boolean hasNaValue()
       A value of "Not Applicable (N/A)". Should only ever be `true`.
       
      bool na_value = 5;
      Specified by:
      hasNaValue in interface QaAnswer.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:
      getNaValue in interface QaAnswer.AnswerValueOrBuilder
      Returns:
      The naValue.
    • getKey

      public String getKey()
       A short string used as an identifier. Matches the value used in
       QaQuestion.AnswerChoice.key.
       
      string key = 1;
      Specified by:
      getKey in interface QaAnswer.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:
      getKeyBytes in interface QaAnswer.AnswerValueOrBuilder
      Returns:
      The bytes for key.
    • hasScore

      public boolean hasScore()
       Output only. Numerical score of the answer.
       
      optional double score = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasScore in interface QaAnswer.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:
      getScore in interface QaAnswer.AnswerValueOrBuilder
      Returns:
      The score.
    • 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:
      hasPotentialScore in interface QaAnswer.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:
      getPotentialScore in interface QaAnswer.AnswerValueOrBuilder
      Returns:
      The potentialScore.
    • 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:
      hasNormalizedScore in interface QaAnswer.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:
      getNormalizedScore in interface QaAnswer.AnswerValueOrBuilder
      Returns:
      The normalizedScore.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static QaAnswer.AnswerValue parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static QaAnswer.AnswerValue parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static QaAnswer.AnswerValue parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static QaAnswer.AnswerValue parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static QaAnswer.AnswerValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static QaAnswer.AnswerValue parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static QaAnswer.AnswerValue parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static QaAnswer.AnswerValue parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static QaAnswer.AnswerValue parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static QaAnswer.AnswerValue parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static QaAnswer.AnswerValue parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static QaAnswer.AnswerValue parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public QaAnswer.AnswerValue.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static QaAnswer.AnswerValue.Builder newBuilder()
    • newBuilder

      public static QaAnswer.AnswerValue.Builder newBuilder(QaAnswer.AnswerValue prototype)
    • toBuilder

      public QaAnswer.AnswerValue.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected QaAnswer.AnswerValue.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static QaAnswer.AnswerValue getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<QaAnswer.AnswerValue> parser()
    • getParserForType

      public com.google.protobuf.Parser<QaAnswer.AnswerValue> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public QaAnswer.AnswerValue getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder