Class QaAnswer.AnswerSource.Builder

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

public static final class QaAnswer.AnswerSource.Builder extends com.google.protobuf.GeneratedMessage.Builder<QaAnswer.AnswerSource.Builder> implements QaAnswer.AnswerSourceOrBuilder
 A question may have multiple answers from varying sources, one of which
 becomes the "main" answer above. AnswerSource represents each individual
 answer.
 
Protobuf type google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource
  • 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.AnswerSource.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.AnswerSource.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.AnswerSource.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

      public int getSourceTypeValue()
       What created the answer.
       
      .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource.SourceType source_type = 1;
      Specified by:
      getSourceTypeValue in interface QaAnswer.AnswerSourceOrBuilder
      Returns:
      The enum numeric value on the wire for sourceType.
    • setSourceTypeValue

      public QaAnswer.AnswerSource.Builder setSourceTypeValue(int value)
       What created the answer.
       
      .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource.SourceType source_type = 1;
      Parameters:
      value - The enum numeric value on the wire for sourceType to set.
      Returns:
      This builder for chaining.
    • getSourceType

      public QaAnswer.AnswerSource.SourceType getSourceType()
       What created the answer.
       
      .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource.SourceType source_type = 1;
      Specified by:
      getSourceType in interface QaAnswer.AnswerSourceOrBuilder
      Returns:
      The sourceType.
    • setSourceType

       What created the answer.
       
      .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource.SourceType source_type = 1;
      Parameters:
      value - The sourceType to set.
      Returns:
      This builder for chaining.
    • clearSourceType

      public QaAnswer.AnswerSource.Builder clearSourceType()
       What created the answer.
       
      .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerSource.SourceType source_type = 1;
      Returns:
      This builder for chaining.
    • hasAnswerValue

      public boolean hasAnswerValue()
       The answer value from this source.
       
      .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue answer_value = 2;
      Specified by:
      hasAnswerValue in interface QaAnswer.AnswerSourceOrBuilder
      Returns:
      Whether the answerValue field is set.
    • getAnswerValue

      public QaAnswer.AnswerValue getAnswerValue()
       The answer value from this source.
       
      .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue answer_value = 2;
      Specified by:
      getAnswerValue in interface QaAnswer.AnswerSourceOrBuilder
      Returns:
      The answerValue.
    • setAnswerValue

      public QaAnswer.AnswerSource.Builder setAnswerValue(QaAnswer.AnswerValue value)
       The answer value from this source.
       
      .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue answer_value = 2;
    • setAnswerValue

      public QaAnswer.AnswerSource.Builder setAnswerValue(QaAnswer.AnswerValue.Builder builderForValue)
       The answer value from this source.
       
      .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue answer_value = 2;
    • mergeAnswerValue

      public QaAnswer.AnswerSource.Builder mergeAnswerValue(QaAnswer.AnswerValue value)
       The answer value from this source.
       
      .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue answer_value = 2;
    • clearAnswerValue

      public QaAnswer.AnswerSource.Builder clearAnswerValue()
       The answer value from this source.
       
      .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue answer_value = 2;
    • getAnswerValueBuilder

      public QaAnswer.AnswerValue.Builder getAnswerValueBuilder()
       The answer value from this source.
       
      .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue answer_value = 2;
    • getAnswerValueOrBuilder

      public QaAnswer.AnswerValueOrBuilder getAnswerValueOrBuilder()
       The answer value from this source.
       
      .google.cloud.contactcenterinsights.v1.QaAnswer.AnswerValue answer_value = 2;
      Specified by:
      getAnswerValueOrBuilder in interface QaAnswer.AnswerSourceOrBuilder