Class QaQuestion.AnswerChoice

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

public static final class QaQuestion.AnswerChoice extends com.google.protobuf.GeneratedMessage implements QaQuestion.AnswerChoiceOrBuilder
 Message representing a possible answer to the question.
 
Protobuf type google.cloud.contactcenterinsights.v1.QaQuestion.AnswerChoice
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 QaQuestion.AnswerChoice.ValueCase getValueCase()
      Specified by:
      getValueCase in interface QaQuestion.AnswerChoiceOrBuilder
    • hasStrValue

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

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

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

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

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

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

      public boolean getBoolValue()
       Boolean value.
       
      bool bool_value = 4;
      Specified by:
      getBoolValue in interface QaQuestion.AnswerChoiceOrBuilder
      Returns:
      The boolValue.
    • 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:
      hasNaValue in interface QaQuestion.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:
      getNaValue in interface QaQuestion.AnswerChoiceOrBuilder
      Returns:
      The naValue.
    • getKey

      public String getKey()
       A short string used as an identifier.
       
      string key = 1;
      Specified by:
      getKey in interface QaQuestion.AnswerChoiceOrBuilder
      Returns:
      The key.
    • getKeyBytes

      public com.google.protobuf.ByteString getKeyBytes()
       A short string used as an identifier.
       
      string key = 1;
      Specified by:
      getKeyBytes in interface QaQuestion.AnswerChoiceOrBuilder
      Returns:
      The bytes for key.
    • 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:
      hasScore in interface QaQuestion.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:
      getScore in interface QaQuestion.AnswerChoiceOrBuilder
      Returns:
      The score.
    • 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 QaQuestion.AnswerChoice parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static QaQuestion.AnswerChoice parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static QaQuestion.AnswerChoice parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

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

      public static QaQuestion.AnswerChoice.Builder newBuilder()
    • newBuilder

      public static QaQuestion.AnswerChoice.Builder newBuilder(QaQuestion.AnswerChoice prototype)
    • toBuilder

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

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

      public static QaQuestion.AnswerChoice getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<QaQuestion.AnswerChoice> parser()
    • getParserForType

      public com.google.protobuf.Parser<QaQuestion.AnswerChoice> 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 QaQuestion.AnswerChoice getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder