Class QaAnswer.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<QaAnswer.Builder>
com.google.cloud.contactcenterinsights.v1.QaAnswer.Builder
All Implemented Interfaces:
QaAnswerOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
QaAnswer

public static final class QaAnswer.Builder extends com.google.protobuf.GeneratedMessage.Builder<QaAnswer.Builder> implements QaAnswerOrBuilder
 An answer to a QaQuestion.
 
Protobuf type google.cloud.contactcenterinsights.v1.QaAnswer
  • 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<QaAnswer.Builder>
    • clear

      public QaAnswer.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<QaAnswer.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<QaAnswer.Builder>
    • getDefaultInstanceForType

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

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

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

      public QaAnswer.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<QaAnswer.Builder>
    • mergeFrom

      public QaAnswer.Builder mergeFrom(QaAnswer other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<QaAnswer.Builder>
    • mergeFrom

      public QaAnswer.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<QaAnswer.Builder>
      Throws:
      IOException
    • getQaQuestion

      public String getQaQuestion()
       The QaQuestion answered by this answer.
       
      string qa_question = 7 [(.google.api.resource_reference) = { ... }
      Specified by:
      getQaQuestion in interface QaAnswerOrBuilder
      Returns:
      The qaQuestion.
    • getQaQuestionBytes

      public com.google.protobuf.ByteString getQaQuestionBytes()
       The QaQuestion answered by this answer.
       
      string qa_question = 7 [(.google.api.resource_reference) = { ... }
      Specified by:
      getQaQuestionBytes in interface QaAnswerOrBuilder
      Returns:
      The bytes for qaQuestion.
    • setQaQuestion

      public QaAnswer.Builder setQaQuestion(String value)
       The QaQuestion answered by this answer.
       
      string qa_question = 7 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The qaQuestion to set.
      Returns:
      This builder for chaining.
    • clearQaQuestion

      public QaAnswer.Builder clearQaQuestion()
       The QaQuestion answered by this answer.
       
      string qa_question = 7 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setQaQuestionBytes

      public QaAnswer.Builder setQaQuestionBytes(com.google.protobuf.ByteString value)
       The QaQuestion answered by this answer.
       
      string qa_question = 7 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for qaQuestion to set.
      Returns:
      This builder for chaining.
    • getConversation

      public String getConversation()
       The conversation the answer applies to.
       
      string conversation = 2 [(.google.api.resource_reference) = { ... }
      Specified by:
      getConversation in interface QaAnswerOrBuilder
      Returns:
      The conversation.
    • getConversationBytes

      public com.google.protobuf.ByteString getConversationBytes()
       The conversation the answer applies to.
       
      string conversation = 2 [(.google.api.resource_reference) = { ... }
      Specified by:
      getConversationBytes in interface QaAnswerOrBuilder
      Returns:
      The bytes for conversation.
    • setConversation

      public QaAnswer.Builder setConversation(String value)
       The conversation the answer applies to.
       
      string conversation = 2 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The conversation to set.
      Returns:
      This builder for chaining.
    • clearConversation

      public QaAnswer.Builder clearConversation()
       The conversation the answer applies to.
       
      string conversation = 2 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setConversationBytes

      public QaAnswer.Builder setConversationBytes(com.google.protobuf.ByteString value)
       The conversation the answer applies to.
       
      string conversation = 2 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for conversation to set.
      Returns:
      This builder for chaining.
    • getQuestionBody

      public String getQuestionBody()
       Question text. E.g., "Did the agent greet the customer?"
       
      string question_body = 6;
      Specified by:
      getQuestionBody in interface QaAnswerOrBuilder
      Returns:
      The questionBody.
    • getQuestionBodyBytes

      public com.google.protobuf.ByteString getQuestionBodyBytes()
       Question text. E.g., "Did the agent greet the customer?"
       
      string question_body = 6;
      Specified by:
      getQuestionBodyBytes in interface QaAnswerOrBuilder
      Returns:
      The bytes for questionBody.
    • setQuestionBody

      public QaAnswer.Builder setQuestionBody(String value)
       Question text. E.g., "Did the agent greet the customer?"
       
      string question_body = 6;
      Parameters:
      value - The questionBody to set.
      Returns:
      This builder for chaining.
    • clearQuestionBody

      public QaAnswer.Builder clearQuestionBody()
       Question text. E.g., "Did the agent greet the customer?"
       
      string question_body = 6;
      Returns:
      This builder for chaining.
    • setQuestionBodyBytes

      public QaAnswer.Builder setQuestionBodyBytes(com.google.protobuf.ByteString value)
       Question text. E.g., "Did the agent greet the customer?"
       
      string question_body = 6;
      Parameters:
      value - The bytes for questionBody to set.
      Returns:
      This builder for chaining.
    • hasAnswerValue

      public boolean hasAnswerValue()
       The main answer value, incorporating any manual edits if they exist.
       
      .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue answer_value = 3;
      Specified by:
      hasAnswerValue in interface QaAnswerOrBuilder
      Returns:
      Whether the answerValue field is set.
    • getAnswerValue

      public QaAnswer.AnswerValue getAnswerValue()
       The main answer value, incorporating any manual edits if they exist.
       
      .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue answer_value = 3;
      Specified by:
      getAnswerValue in interface QaAnswerOrBuilder
      Returns:
      The answerValue.
    • setAnswerValue

      public QaAnswer.Builder setAnswerValue(QaAnswer.AnswerValue value)
       The main answer value, incorporating any manual edits if they exist.
       
      .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue answer_value = 3;
    • setAnswerValue

      public QaAnswer.Builder setAnswerValue(QaAnswer.AnswerValue.Builder builderForValue)
       The main answer value, incorporating any manual edits if they exist.
       
      .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue answer_value = 3;
    • mergeAnswerValue

      public QaAnswer.Builder mergeAnswerValue(QaAnswer.AnswerValue value)
       The main answer value, incorporating any manual edits if they exist.
       
      .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue answer_value = 3;
    • clearAnswerValue

      public QaAnswer.Builder clearAnswerValue()
       The main answer value, incorporating any manual edits if they exist.
       
      .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue answer_value = 3;
    • getAnswerValueBuilder

      public QaAnswer.AnswerValue.Builder getAnswerValueBuilder()
       The main answer value, incorporating any manual edits if they exist.
       
      .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue answer_value = 3;
    • getAnswerValueOrBuilder

      public QaAnswer.AnswerValueOrBuilder getAnswerValueOrBuilder()
       The main answer value, incorporating any manual edits if they exist.
       
      .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue answer_value = 3;
      Specified by:
      getAnswerValueOrBuilder in interface QaAnswerOrBuilder
    • getTagsList

      public com.google.protobuf.ProtocolStringList getTagsList()
       User-defined list of arbitrary tags. Matches the value from
       QaScorecard.ScorecardQuestion.tags. Used for grouping/organization and
       for weighting the score of each answer.
       
      repeated string tags = 5;
      Specified by:
      getTagsList in interface QaAnswerOrBuilder
      Returns:
      A list containing the tags.
    • getTagsCount

      public int getTagsCount()
       User-defined list of arbitrary tags. Matches the value from
       QaScorecard.ScorecardQuestion.tags. Used for grouping/organization and
       for weighting the score of each answer.
       
      repeated string tags = 5;
      Specified by:
      getTagsCount in interface QaAnswerOrBuilder
      Returns:
      The count of tags.
    • getTags

      public String getTags(int index)
       User-defined list of arbitrary tags. Matches the value from
       QaScorecard.ScorecardQuestion.tags. Used for grouping/organization and
       for weighting the score of each answer.
       
      repeated string tags = 5;
      Specified by:
      getTags in interface QaAnswerOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The tags at the given index.
    • getTagsBytes

      public com.google.protobuf.ByteString getTagsBytes(int index)
       User-defined list of arbitrary tags. Matches the value from
       QaScorecard.ScorecardQuestion.tags. Used for grouping/organization and
       for weighting the score of each answer.
       
      repeated string tags = 5;
      Specified by:
      getTagsBytes in interface QaAnswerOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the tags at the given index.
    • setTags

      public QaAnswer.Builder setTags(int index, String value)
       User-defined list of arbitrary tags. Matches the value from
       QaScorecard.ScorecardQuestion.tags. Used for grouping/organization and
       for weighting the score of each answer.
       
      repeated string tags = 5;
      Parameters:
      index - The index to set the value at.
      value - The tags to set.
      Returns:
      This builder for chaining.
    • addTags

      public QaAnswer.Builder addTags(String value)
       User-defined list of arbitrary tags. Matches the value from
       QaScorecard.ScorecardQuestion.tags. Used for grouping/organization and
       for weighting the score of each answer.
       
      repeated string tags = 5;
      Parameters:
      value - The tags to add.
      Returns:
      This builder for chaining.
    • addAllTags

      public QaAnswer.Builder addAllTags(Iterable<String> values)
       User-defined list of arbitrary tags. Matches the value from
       QaScorecard.ScorecardQuestion.tags. Used for grouping/organization and
       for weighting the score of each answer.
       
      repeated string tags = 5;
      Parameters:
      values - The tags to add.
      Returns:
      This builder for chaining.
    • clearTags

      public QaAnswer.Builder clearTags()
       User-defined list of arbitrary tags. Matches the value from
       QaScorecard.ScorecardQuestion.tags. Used for grouping/organization and
       for weighting the score of each answer.
       
      repeated string tags = 5;
      Returns:
      This builder for chaining.
    • addTagsBytes

      public QaAnswer.Builder addTagsBytes(com.google.protobuf.ByteString value)
       User-defined list of arbitrary tags. Matches the value from
       QaScorecard.ScorecardQuestion.tags. Used for grouping/organization and
       for weighting the score of each answer.
       
      repeated string tags = 5;
      Parameters:
      value - The bytes of the tags to add.
      Returns:
      This builder for chaining.
    • getAnswerSourcesList

      public List<QaAnswer.AnswerSource> getAnswerSourcesList()
       List of all individual answers given to the question.
       
      repeated .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource answer_sources = 8;
      Specified by:
      getAnswerSourcesList in interface QaAnswerOrBuilder
    • getAnswerSourcesCount

      public int getAnswerSourcesCount()
       List of all individual answers given to the question.
       
      repeated .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource answer_sources = 8;
      Specified by:
      getAnswerSourcesCount in interface QaAnswerOrBuilder
    • getAnswerSources

      public QaAnswer.AnswerSource getAnswerSources(int index)
       List of all individual answers given to the question.
       
      repeated .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource answer_sources = 8;
      Specified by:
      getAnswerSources in interface QaAnswerOrBuilder
    • setAnswerSources

      public QaAnswer.Builder setAnswerSources(int index, QaAnswer.AnswerSource value)
       List of all individual answers given to the question.
       
      repeated .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource answer_sources = 8;
    • setAnswerSources

      public QaAnswer.Builder setAnswerSources(int index, QaAnswer.AnswerSource.Builder builderForValue)
       List of all individual answers given to the question.
       
      repeated .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource answer_sources = 8;
    • addAnswerSources

      public QaAnswer.Builder addAnswerSources(QaAnswer.AnswerSource value)
       List of all individual answers given to the question.
       
      repeated .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource answer_sources = 8;
    • addAnswerSources

      public QaAnswer.Builder addAnswerSources(int index, QaAnswer.AnswerSource value)
       List of all individual answers given to the question.
       
      repeated .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource answer_sources = 8;
    • addAnswerSources

      public QaAnswer.Builder addAnswerSources(QaAnswer.AnswerSource.Builder builderForValue)
       List of all individual answers given to the question.
       
      repeated .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource answer_sources = 8;
    • addAnswerSources

      public QaAnswer.Builder addAnswerSources(int index, QaAnswer.AnswerSource.Builder builderForValue)
       List of all individual answers given to the question.
       
      repeated .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource answer_sources = 8;
    • addAllAnswerSources

      public QaAnswer.Builder addAllAnswerSources(Iterable<? extends QaAnswer.AnswerSource> values)
       List of all individual answers given to the question.
       
      repeated .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource answer_sources = 8;
    • clearAnswerSources

      public QaAnswer.Builder clearAnswerSources()
       List of all individual answers given to the question.
       
      repeated .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource answer_sources = 8;
    • removeAnswerSources

      public QaAnswer.Builder removeAnswerSources(int index)
       List of all individual answers given to the question.
       
      repeated .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource answer_sources = 8;
    • getAnswerSourcesBuilder

      public QaAnswer.AnswerSource.Builder getAnswerSourcesBuilder(int index)
       List of all individual answers given to the question.
       
      repeated .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource answer_sources = 8;
    • getAnswerSourcesOrBuilder

      public QaAnswer.AnswerSourceOrBuilder getAnswerSourcesOrBuilder(int index)
       List of all individual answers given to the question.
       
      repeated .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource answer_sources = 8;
      Specified by:
      getAnswerSourcesOrBuilder in interface QaAnswerOrBuilder
    • getAnswerSourcesOrBuilderList

      public List<? extends QaAnswer.AnswerSourceOrBuilder> getAnswerSourcesOrBuilderList()
       List of all individual answers given to the question.
       
      repeated .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource answer_sources = 8;
      Specified by:
      getAnswerSourcesOrBuilderList in interface QaAnswerOrBuilder
    • addAnswerSourcesBuilder

      public QaAnswer.AnswerSource.Builder addAnswerSourcesBuilder()
       List of all individual answers given to the question.
       
      repeated .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource answer_sources = 8;
    • addAnswerSourcesBuilder

      public QaAnswer.AnswerSource.Builder addAnswerSourcesBuilder(int index)
       List of all individual answers given to the question.
       
      repeated .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource answer_sources = 8;
    • getAnswerSourcesBuilderList

      public List<QaAnswer.AnswerSource.Builder> getAnswerSourcesBuilderList()
       List of all individual answers given to the question.
       
      repeated .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource answer_sources = 8;