Class ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder>
com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder
All Implemented Interfaces:
ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ClassificationEvaluationMetrics.ConfusionMatrix.Row

public static final class ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder extends com.google.protobuf.GeneratedMessage.Builder<ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder> implements ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder
 Output only. A row in the confusion matrix.
 
Protobuf type google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.Row
  • 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<ClassificationEvaluationMetrics.ConfusionMatrix.Row.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<ClassificationEvaluationMetrics.ConfusionMatrix.Row.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<ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ClassificationEvaluationMetrics.ConfusionMatrix.Row.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<ClassificationEvaluationMetrics.ConfusionMatrix.Row.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<ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder>
    • mergeFrom

      public ClassificationEvaluationMetrics.ConfusionMatrix.Row.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<ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder>
      Throws:
      IOException
    • getExampleCountList

      public List<Integer> getExampleCountList()
       Output only. Value of the specific cell in the confusion matrix.
       The number of values each row has (i.e. the length of the row) is equal
       to the length of the `annotation_spec_id` field or, if that one is not
       populated, length of the [display_name][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.display_name] field.
       
      repeated int32 example_count = 1;
      Specified by:
      getExampleCountList in interface ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder
      Returns:
      A list containing the exampleCount.
    • getExampleCountCount

      public int getExampleCountCount()
       Output only. Value of the specific cell in the confusion matrix.
       The number of values each row has (i.e. the length of the row) is equal
       to the length of the `annotation_spec_id` field or, if that one is not
       populated, length of the [display_name][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.display_name] field.
       
      repeated int32 example_count = 1;
      Specified by:
      getExampleCountCount in interface ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder
      Returns:
      The count of exampleCount.
    • getExampleCount

      public int getExampleCount(int index)
       Output only. Value of the specific cell in the confusion matrix.
       The number of values each row has (i.e. the length of the row) is equal
       to the length of the `annotation_spec_id` field or, if that one is not
       populated, length of the [display_name][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.display_name] field.
       
      repeated int32 example_count = 1;
      Specified by:
      getExampleCount in interface ClassificationEvaluationMetrics.ConfusionMatrix.RowOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The exampleCount at the given index.
    • setExampleCount

      public ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder setExampleCount(int index, int value)
       Output only. Value of the specific cell in the confusion matrix.
       The number of values each row has (i.e. the length of the row) is equal
       to the length of the `annotation_spec_id` field or, if that one is not
       populated, length of the [display_name][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.display_name] field.
       
      repeated int32 example_count = 1;
      Parameters:
      index - The index to set the value at.
      value - The exampleCount to set.
      Returns:
      This builder for chaining.
    • addExampleCount

       Output only. Value of the specific cell in the confusion matrix.
       The number of values each row has (i.e. the length of the row) is equal
       to the length of the `annotation_spec_id` field or, if that one is not
       populated, length of the [display_name][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.display_name] field.
       
      repeated int32 example_count = 1;
      Parameters:
      value - The exampleCount to add.
      Returns:
      This builder for chaining.
    • addAllExampleCount

      public ClassificationEvaluationMetrics.ConfusionMatrix.Row.Builder addAllExampleCount(Iterable<? extends Integer> values)
       Output only. Value of the specific cell in the confusion matrix.
       The number of values each row has (i.e. the length of the row) is equal
       to the length of the `annotation_spec_id` field or, if that one is not
       populated, length of the [display_name][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.display_name] field.
       
      repeated int32 example_count = 1;
      Parameters:
      values - The exampleCount to add.
      Returns:
      This builder for chaining.
    • clearExampleCount

       Output only. Value of the specific cell in the confusion matrix.
       The number of values each row has (i.e. the length of the row) is equal
       to the length of the `annotation_spec_id` field or, if that one is not
       populated, length of the [display_name][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix.display_name] field.
       
      repeated int32 example_count = 1;
      Returns:
      This builder for chaining.