Class ConfusionMatrix.Row.Builder

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

public static final class ConfusionMatrix.Row.Builder extends com.google.protobuf.GeneratedMessage.Builder<ConfusionMatrix.Row.Builder> implements ConfusionMatrix.RowOrBuilder
 A row in the confusion matrix. Each entry in this row has the same
 ground truth label.
 
Protobuf type google.cloud.datalabeling.v1beta1.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<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<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<ConfusionMatrix.Row.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

      public boolean hasAnnotationSpec()
       The annotation spec of the ground truth label for this row.
       
      .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
      Specified by:
      hasAnnotationSpec in interface ConfusionMatrix.RowOrBuilder
      Returns:
      Whether the annotationSpec field is set.
    • getAnnotationSpec

      public AnnotationSpec getAnnotationSpec()
       The annotation spec of the ground truth label for this row.
       
      .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
      Specified by:
      getAnnotationSpec in interface ConfusionMatrix.RowOrBuilder
      Returns:
      The annotationSpec.
    • setAnnotationSpec

      public ConfusionMatrix.Row.Builder setAnnotationSpec(AnnotationSpec value)
       The annotation spec of the ground truth label for this row.
       
      .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
    • setAnnotationSpec

      public ConfusionMatrix.Row.Builder setAnnotationSpec(AnnotationSpec.Builder builderForValue)
       The annotation spec of the ground truth label for this row.
       
      .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
    • mergeAnnotationSpec

      public ConfusionMatrix.Row.Builder mergeAnnotationSpec(AnnotationSpec value)
       The annotation spec of the ground truth label for this row.
       
      .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
    • clearAnnotationSpec

      public ConfusionMatrix.Row.Builder clearAnnotationSpec()
       The annotation spec of the ground truth label for this row.
       
      .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
    • getAnnotationSpecBuilder

      public AnnotationSpec.Builder getAnnotationSpecBuilder()
       The annotation spec of the ground truth label for this row.
       
      .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
    • getAnnotationSpecOrBuilder

      public AnnotationSpecOrBuilder getAnnotationSpecOrBuilder()
       The annotation spec of the ground truth label for this row.
       
      .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
      Specified by:
      getAnnotationSpecOrBuilder in interface ConfusionMatrix.RowOrBuilder
    • getEntriesList

      public List<ConfusionMatrix.ConfusionMatrixEntry> getEntriesList()
       A list of the confusion matrix entries. One entry for each possible
       predicted label.
       
      repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2;
      Specified by:
      getEntriesList in interface ConfusionMatrix.RowOrBuilder
    • getEntriesCount

      public int getEntriesCount()
       A list of the confusion matrix entries. One entry for each possible
       predicted label.
       
      repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2;
      Specified by:
      getEntriesCount in interface ConfusionMatrix.RowOrBuilder
    • getEntries

      public ConfusionMatrix.ConfusionMatrixEntry getEntries(int index)
       A list of the confusion matrix entries. One entry for each possible
       predicted label.
       
      repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2;
      Specified by:
      getEntries in interface ConfusionMatrix.RowOrBuilder
    • setEntries

       A list of the confusion matrix entries. One entry for each possible
       predicted label.
       
      repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2;
    • setEntries

      public ConfusionMatrix.Row.Builder setEntries(int index, ConfusionMatrix.ConfusionMatrixEntry.Builder builderForValue)
       A list of the confusion matrix entries. One entry for each possible
       predicted label.
       
      repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2;
    • addEntries

       A list of the confusion matrix entries. One entry for each possible
       predicted label.
       
      repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2;
    • addEntries

       A list of the confusion matrix entries. One entry for each possible
       predicted label.
       
      repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2;
    • addEntries

       A list of the confusion matrix entries. One entry for each possible
       predicted label.
       
      repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2;
    • addEntries

      public ConfusionMatrix.Row.Builder addEntries(int index, ConfusionMatrix.ConfusionMatrixEntry.Builder builderForValue)
       A list of the confusion matrix entries. One entry for each possible
       predicted label.
       
      repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2;
    • addAllEntries

       A list of the confusion matrix entries. One entry for each possible
       predicted label.
       
      repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2;
    • clearEntries

      public ConfusionMatrix.Row.Builder clearEntries()
       A list of the confusion matrix entries. One entry for each possible
       predicted label.
       
      repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2;
    • removeEntries

      public ConfusionMatrix.Row.Builder removeEntries(int index)
       A list of the confusion matrix entries. One entry for each possible
       predicted label.
       
      repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2;
    • getEntriesBuilder

      public ConfusionMatrix.ConfusionMatrixEntry.Builder getEntriesBuilder(int index)
       A list of the confusion matrix entries. One entry for each possible
       predicted label.
       
      repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2;
    • getEntriesOrBuilder

      public ConfusionMatrix.ConfusionMatrixEntryOrBuilder getEntriesOrBuilder(int index)
       A list of the confusion matrix entries. One entry for each possible
       predicted label.
       
      repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2;
      Specified by:
      getEntriesOrBuilder in interface ConfusionMatrix.RowOrBuilder
    • getEntriesOrBuilderList

      public List<? extends ConfusionMatrix.ConfusionMatrixEntryOrBuilder> getEntriesOrBuilderList()
       A list of the confusion matrix entries. One entry for each possible
       predicted label.
       
      repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2;
      Specified by:
      getEntriesOrBuilderList in interface ConfusionMatrix.RowOrBuilder
    • addEntriesBuilder

       A list of the confusion matrix entries. One entry for each possible
       predicted label.
       
      repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2;
    • addEntriesBuilder

      public ConfusionMatrix.ConfusionMatrixEntry.Builder addEntriesBuilder(int index)
       A list of the confusion matrix entries. One entry for each possible
       predicted label.
       
      repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2;
    • getEntriesBuilderList

      public List<ConfusionMatrix.ConfusionMatrixEntry.Builder> getEntriesBuilderList()
       A list of the confusion matrix entries. One entry for each possible
       predicted label.
       
      repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2;