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 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.Builder<QaQuestion.AnswerChoice.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<QaQuestion.AnswerChoice.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<QaQuestion.AnswerChoice.Builder>
    • getDefaultInstanceForType

      public QaQuestion.AnswerChoice getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

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

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

      public QaQuestion.AnswerChoice.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<QaQuestion.AnswerChoice.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<QaQuestion.AnswerChoice.Builder>
      Throws:
      IOException
    • getValueCase

      public QaQuestion.AnswerChoice.ValueCase getValueCase()
      Specified by:
      getValueCase in interface QaQuestion.AnswerChoiceOrBuilder
    • clearValue

      public QaQuestion.AnswerChoice.Builder clearValue()
    • 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.
    • setStrValue

      public QaQuestion.AnswerChoice.Builder setStrValue(String value)
       String value.
       
      string str_value = 2;
      Parameters:
      value - The strValue to set.
      Returns:
      This builder for chaining.
    • clearStrValue

      public QaQuestion.AnswerChoice.Builder clearStrValue()
       String value.
       
      string str_value = 2;
      Returns:
      This builder for chaining.
    • setStrValueBytes

      public QaQuestion.AnswerChoice.Builder setStrValueBytes(com.google.protobuf.ByteString value)
       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:
      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.
    • setNumValue

      public QaQuestion.AnswerChoice.Builder setNumValue(double value)
       Numerical value.
       
      double num_value = 3;
      Parameters:
      value - The numValue to set.
      Returns:
      This builder for chaining.
    • clearNumValue

      public QaQuestion.AnswerChoice.Builder clearNumValue()
       Numerical value.
       
      double num_value = 3;
      Returns:
      This builder for chaining.
    • 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.
    • setBoolValue

      public QaQuestion.AnswerChoice.Builder setBoolValue(boolean value)
       Boolean value.
       
      bool bool_value = 4;
      Parameters:
      value - The boolValue to set.
      Returns:
      This builder for chaining.
    • clearBoolValue

      public QaQuestion.AnswerChoice.Builder 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:
      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.
    • setNaValue

      public 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;
      Parameters:
      value - The naValue to set.
      Returns:
      This builder for chaining.
    • clearNaValue

      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;
      Returns:
      This builder for chaining.
    • 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.
    • setKey

      public QaQuestion.AnswerChoice.Builder setKey(String value)
       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

      public QaQuestion.AnswerChoice.Builder setKeyBytes(com.google.protobuf.ByteString value)
       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:
      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.
    • setScore

      public 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;
      Parameters:
      value - The score to set.
      Returns:
      This builder for chaining.
    • clearScore

      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;
      Returns:
      This builder for chaining.