Class TextClassificationAnnotation.Builder

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

public static final class TextClassificationAnnotation.Builder extends com.google.protobuf.GeneratedMessage.Builder<TextClassificationAnnotation.Builder> implements TextClassificationAnnotationOrBuilder
 Text classification annotation.
 
Protobuf type google.cloud.datalabeling.v1beta1.TextClassificationAnnotation
  • 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<TextClassificationAnnotation.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<TextClassificationAnnotation.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<TextClassificationAnnotation.Builder>
    • getDefaultInstanceForType

      public TextClassificationAnnotation 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

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

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

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

      public boolean hasAnnotationSpec()
       Label of the text.
       
      .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
      Specified by:
      hasAnnotationSpec in interface TextClassificationAnnotationOrBuilder
      Returns:
      Whether the annotationSpec field is set.
    • getAnnotationSpec

      public AnnotationSpec getAnnotationSpec()
       Label of the text.
       
      .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
      Specified by:
      getAnnotationSpec in interface TextClassificationAnnotationOrBuilder
      Returns:
      The annotationSpec.
    • setAnnotationSpec

      public TextClassificationAnnotation.Builder setAnnotationSpec(AnnotationSpec value)
       Label of the text.
       
      .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
    • setAnnotationSpec

      public TextClassificationAnnotation.Builder setAnnotationSpec(AnnotationSpec.Builder builderForValue)
       Label of the text.
       
      .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
    • mergeAnnotationSpec

      public TextClassificationAnnotation.Builder mergeAnnotationSpec(AnnotationSpec value)
       Label of the text.
       
      .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
    • clearAnnotationSpec

      public TextClassificationAnnotation.Builder clearAnnotationSpec()
       Label of the text.
       
      .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
    • getAnnotationSpecBuilder

      public AnnotationSpec.Builder getAnnotationSpecBuilder()
       Label of the text.
       
      .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
    • getAnnotationSpecOrBuilder

      public AnnotationSpecOrBuilder getAnnotationSpecOrBuilder()
       Label of the text.
       
      .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
      Specified by:
      getAnnotationSpecOrBuilder in interface TextClassificationAnnotationOrBuilder