Class TextClassificationDatasetMetadata.Builder

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

public static final class TextClassificationDatasetMetadata.Builder extends com.google.protobuf.GeneratedMessage.Builder<TextClassificationDatasetMetadata.Builder> implements TextClassificationDatasetMetadataOrBuilder
 Dataset metadata for classification.
 
Protobuf type google.cloud.automl.v1.TextClassificationDatasetMetadata
  • 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<TextClassificationDatasetMetadata.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<TextClassificationDatasetMetadata.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<TextClassificationDatasetMetadata.Builder>
    • getDefaultInstanceForType

      public TextClassificationDatasetMetadata 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 TextClassificationDatasetMetadata buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public TextClassificationDatasetMetadata.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<TextClassificationDatasetMetadata.Builder>
      Throws:
      IOException
    • getClassificationTypeValue

      public int getClassificationTypeValue()
       Required. Type of the classification problem.
       
      .google.cloud.automl.v1.ClassificationType classification_type = 1;
      Specified by:
      getClassificationTypeValue in interface TextClassificationDatasetMetadataOrBuilder
      Returns:
      The enum numeric value on the wire for classificationType.
    • setClassificationTypeValue

      public TextClassificationDatasetMetadata.Builder setClassificationTypeValue(int value)
       Required. Type of the classification problem.
       
      .google.cloud.automl.v1.ClassificationType classification_type = 1;
      Parameters:
      value - The enum numeric value on the wire for classificationType to set.
      Returns:
      This builder for chaining.
    • getClassificationType

      public ClassificationType getClassificationType()
       Required. Type of the classification problem.
       
      .google.cloud.automl.v1.ClassificationType classification_type = 1;
      Specified by:
      getClassificationType in interface TextClassificationDatasetMetadataOrBuilder
      Returns:
      The classificationType.
    • setClassificationType

      public TextClassificationDatasetMetadata.Builder setClassificationType(ClassificationType value)
       Required. Type of the classification problem.
       
      .google.cloud.automl.v1.ClassificationType classification_type = 1;
      Parameters:
      value - The classificationType to set.
      Returns:
      This builder for chaining.
    • clearClassificationType

      public TextClassificationDatasetMetadata.Builder clearClassificationType()
       Required. Type of the classification problem.
       
      .google.cloud.automl.v1.ClassificationType classification_type = 1;
      Returns:
      This builder for chaining.