Class QaQuestion.TuningMetadata.Builder

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

public static final class QaQuestion.TuningMetadata.Builder extends com.google.protobuf.GeneratedMessage.Builder<QaQuestion.TuningMetadata.Builder> implements QaQuestion.TuningMetadataOrBuilder
 Metadata about the tuning operation for the question. Will only be set if a
 scorecard containing this question has been tuned.
 
Protobuf type google.cloud.contactcenterinsights.v1.QaQuestion.TuningMetadata
  • 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.TuningMetadata.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.TuningMetadata.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.TuningMetadata.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public QaQuestion.TuningMetadata.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.TuningMetadata.Builder>
      Throws:
      IOException
    • getTotalValidLabelCount

      public long getTotalValidLabelCount()
       Total number of valid labels provided for the question at the time of
       tuining.
       
      int64 total_valid_label_count = 1;
      Specified by:
      getTotalValidLabelCount in interface QaQuestion.TuningMetadataOrBuilder
      Returns:
      The totalValidLabelCount.
    • setTotalValidLabelCount

      public QaQuestion.TuningMetadata.Builder setTotalValidLabelCount(long value)
       Total number of valid labels provided for the question at the time of
       tuining.
       
      int64 total_valid_label_count = 1;
      Parameters:
      value - The totalValidLabelCount to set.
      Returns:
      This builder for chaining.
    • clearTotalValidLabelCount

      public QaQuestion.TuningMetadata.Builder clearTotalValidLabelCount()
       Total number of valid labels provided for the question at the time of
       tuining.
       
      int64 total_valid_label_count = 1;
      Returns:
      This builder for chaining.
    • getDatasetValidationWarningsList

      public List<DatasetValidationWarning> getDatasetValidationWarningsList()
       A list of any applicable data validation warnings about the question's
       feedback labels.
       
      repeated .google.cloud.contactcenterinsights.v1.DatasetValidationWarning dataset_validation_warnings = 2;
      Specified by:
      getDatasetValidationWarningsList in interface QaQuestion.TuningMetadataOrBuilder
      Returns:
      A list containing the datasetValidationWarnings.
    • getDatasetValidationWarningsCount

      public int getDatasetValidationWarningsCount()
       A list of any applicable data validation warnings about the question's
       feedback labels.
       
      repeated .google.cloud.contactcenterinsights.v1.DatasetValidationWarning dataset_validation_warnings = 2;
      Specified by:
      getDatasetValidationWarningsCount in interface QaQuestion.TuningMetadataOrBuilder
      Returns:
      The count of datasetValidationWarnings.
    • getDatasetValidationWarnings

      public DatasetValidationWarning getDatasetValidationWarnings(int index)
       A list of any applicable data validation warnings about the question's
       feedback labels.
       
      repeated .google.cloud.contactcenterinsights.v1.DatasetValidationWarning dataset_validation_warnings = 2;
      Specified by:
      getDatasetValidationWarnings in interface QaQuestion.TuningMetadataOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The datasetValidationWarnings at the given index.
    • setDatasetValidationWarnings

      public QaQuestion.TuningMetadata.Builder setDatasetValidationWarnings(int index, DatasetValidationWarning value)
       A list of any applicable data validation warnings about the question's
       feedback labels.
       
      repeated .google.cloud.contactcenterinsights.v1.DatasetValidationWarning dataset_validation_warnings = 2;
      Parameters:
      index - The index to set the value at.
      value - The datasetValidationWarnings to set.
      Returns:
      This builder for chaining.
    • addDatasetValidationWarnings

      public QaQuestion.TuningMetadata.Builder addDatasetValidationWarnings(DatasetValidationWarning value)
       A list of any applicable data validation warnings about the question's
       feedback labels.
       
      repeated .google.cloud.contactcenterinsights.v1.DatasetValidationWarning dataset_validation_warnings = 2;
      Parameters:
      value - The datasetValidationWarnings to add.
      Returns:
      This builder for chaining.
    • addAllDatasetValidationWarnings

      public QaQuestion.TuningMetadata.Builder addAllDatasetValidationWarnings(Iterable<? extends DatasetValidationWarning> values)
       A list of any applicable data validation warnings about the question's
       feedback labels.
       
      repeated .google.cloud.contactcenterinsights.v1.DatasetValidationWarning dataset_validation_warnings = 2;
      Parameters:
      values - The datasetValidationWarnings to add.
      Returns:
      This builder for chaining.
    • clearDatasetValidationWarnings

      public QaQuestion.TuningMetadata.Builder clearDatasetValidationWarnings()
       A list of any applicable data validation warnings about the question's
       feedback labels.
       
      repeated .google.cloud.contactcenterinsights.v1.DatasetValidationWarning dataset_validation_warnings = 2;
      Returns:
      This builder for chaining.
    • getDatasetValidationWarningsValueList

      public List<Integer> getDatasetValidationWarningsValueList()
       A list of any applicable data validation warnings about the question's
       feedback labels.
       
      repeated .google.cloud.contactcenterinsights.v1.DatasetValidationWarning dataset_validation_warnings = 2;
      Specified by:
      getDatasetValidationWarningsValueList in interface QaQuestion.TuningMetadataOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for datasetValidationWarnings.
    • getDatasetValidationWarningsValue

      public int getDatasetValidationWarningsValue(int index)
       A list of any applicable data validation warnings about the question's
       feedback labels.
       
      repeated .google.cloud.contactcenterinsights.v1.DatasetValidationWarning dataset_validation_warnings = 2;
      Specified by:
      getDatasetValidationWarningsValue in interface QaQuestion.TuningMetadataOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of datasetValidationWarnings at the given index.
    • setDatasetValidationWarningsValue

      public QaQuestion.TuningMetadata.Builder setDatasetValidationWarningsValue(int index, int value)
       A list of any applicable data validation warnings about the question's
       feedback labels.
       
      repeated .google.cloud.contactcenterinsights.v1.DatasetValidationWarning dataset_validation_warnings = 2;
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for datasetValidationWarnings to set.
      Returns:
      This builder for chaining.
    • addDatasetValidationWarningsValue

      public QaQuestion.TuningMetadata.Builder addDatasetValidationWarningsValue(int value)
       A list of any applicable data validation warnings about the question's
       feedback labels.
       
      repeated .google.cloud.contactcenterinsights.v1.DatasetValidationWarning dataset_validation_warnings = 2;
      Parameters:
      value - The enum numeric value on the wire for datasetValidationWarnings to add.
      Returns:
      This builder for chaining.
    • addAllDatasetValidationWarningsValue

      public QaQuestion.TuningMetadata.Builder addAllDatasetValidationWarningsValue(Iterable<Integer> values)
       A list of any applicable data validation warnings about the question's
       feedback labels.
       
      repeated .google.cloud.contactcenterinsights.v1.DatasetValidationWarning dataset_validation_warnings = 2;
      Parameters:
      values - The enum numeric values on the wire for datasetValidationWarnings to add.
      Returns:
      This builder for chaining.
    • getTuningError

      public String getTuningError()
       Error status of the tuning operation for the question. Will only be set
       if the tuning operation failed.
       
      string tuning_error = 3;
      Specified by:
      getTuningError in interface QaQuestion.TuningMetadataOrBuilder
      Returns:
      The tuningError.
    • getTuningErrorBytes

      public com.google.protobuf.ByteString getTuningErrorBytes()
       Error status of the tuning operation for the question. Will only be set
       if the tuning operation failed.
       
      string tuning_error = 3;
      Specified by:
      getTuningErrorBytes in interface QaQuestion.TuningMetadataOrBuilder
      Returns:
      The bytes for tuningError.
    • setTuningError

      public QaQuestion.TuningMetadata.Builder setTuningError(String value)
       Error status of the tuning operation for the question. Will only be set
       if the tuning operation failed.
       
      string tuning_error = 3;
      Parameters:
      value - The tuningError to set.
      Returns:
      This builder for chaining.
    • clearTuningError

      public QaQuestion.TuningMetadata.Builder clearTuningError()
       Error status of the tuning operation for the question. Will only be set
       if the tuning operation failed.
       
      string tuning_error = 3;
      Returns:
      This builder for chaining.
    • setTuningErrorBytes

      public QaQuestion.TuningMetadata.Builder setTuningErrorBytes(com.google.protobuf.ByteString value)
       Error status of the tuning operation for the question. Will only be set
       if the tuning operation failed.
       
      string tuning_error = 3;
      Parameters:
      value - The bytes for tuningError to set.
      Returns:
      This builder for chaining.