Class Dataset

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.automl.v1.Dataset
All Implemented Interfaces:
DatasetOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class Dataset extends com.google.protobuf.GeneratedMessage implements DatasetOrBuilder
 A workspace for solving a single, particular machine learning (ML) problem.
 A workspace contains examples that may be annotated.
 
Protobuf type google.cloud.automl.v1.Dataset
See Also:
  • Field Details

    • TRANSLATION_DATASET_METADATA_FIELD_NUMBER

      public static final int TRANSLATION_DATASET_METADATA_FIELD_NUMBER
      See Also:
    • IMAGE_CLASSIFICATION_DATASET_METADATA_FIELD_NUMBER

      public static final int IMAGE_CLASSIFICATION_DATASET_METADATA_FIELD_NUMBER
      See Also:
    • TEXT_CLASSIFICATION_DATASET_METADATA_FIELD_NUMBER

      public static final int TEXT_CLASSIFICATION_DATASET_METADATA_FIELD_NUMBER
      See Also:
    • IMAGE_OBJECT_DETECTION_DATASET_METADATA_FIELD_NUMBER

      public static final int IMAGE_OBJECT_DETECTION_DATASET_METADATA_FIELD_NUMBER
      See Also:
    • TEXT_EXTRACTION_DATASET_METADATA_FIELD_NUMBER

      public static final int TEXT_EXTRACTION_DATASET_METADATA_FIELD_NUMBER
      See Also:
    • TEXT_SENTIMENT_DATASET_METADATA_FIELD_NUMBER

      public static final int TEXT_SENTIMENT_DATASET_METADATA_FIELD_NUMBER
      See Also:
    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • DISPLAY_NAME_FIELD_NUMBER

      public static final int DISPLAY_NAME_FIELD_NUMBER
      See Also:
    • DESCRIPTION_FIELD_NUMBER

      public static final int DESCRIPTION_FIELD_NUMBER
      See Also:
    • EXAMPLE_COUNT_FIELD_NUMBER

      public static final int EXAMPLE_COUNT_FIELD_NUMBER
      See Also:
    • CREATE_TIME_FIELD_NUMBER

      public static final int CREATE_TIME_FIELD_NUMBER
      See Also:
    • ETAG_FIELD_NUMBER

      public static final int ETAG_FIELD_NUMBER
      See Also:
    • LABELS_FIELD_NUMBER

      public static final int LABELS_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getDatasetMetadataCase

      public Dataset.DatasetMetadataCase getDatasetMetadataCase()
      Specified by:
      getDatasetMetadataCase in interface DatasetOrBuilder
    • hasTranslationDatasetMetadata

      public boolean hasTranslationDatasetMetadata()
       Metadata for a dataset used for translation.
       
      .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23;
      Specified by:
      hasTranslationDatasetMetadata in interface DatasetOrBuilder
      Returns:
      Whether the translationDatasetMetadata field is set.
    • getTranslationDatasetMetadata

      public TranslationDatasetMetadata getTranslationDatasetMetadata()
       Metadata for a dataset used for translation.
       
      .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23;
      Specified by:
      getTranslationDatasetMetadata in interface DatasetOrBuilder
      Returns:
      The translationDatasetMetadata.
    • getTranslationDatasetMetadataOrBuilder

      public TranslationDatasetMetadataOrBuilder getTranslationDatasetMetadataOrBuilder()
       Metadata for a dataset used for translation.
       
      .google.cloud.automl.v1.TranslationDatasetMetadata translation_dataset_metadata = 23;
      Specified by:
      getTranslationDatasetMetadataOrBuilder in interface DatasetOrBuilder
    • hasImageClassificationDatasetMetadata

      public boolean hasImageClassificationDatasetMetadata()
       Metadata for a dataset used for image classification.
       
      .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24;
      Specified by:
      hasImageClassificationDatasetMetadata in interface DatasetOrBuilder
      Returns:
      Whether the imageClassificationDatasetMetadata field is set.
    • getImageClassificationDatasetMetadata

      public ImageClassificationDatasetMetadata getImageClassificationDatasetMetadata()
       Metadata for a dataset used for image classification.
       
      .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24;
      Specified by:
      getImageClassificationDatasetMetadata in interface DatasetOrBuilder
      Returns:
      The imageClassificationDatasetMetadata.
    • getImageClassificationDatasetMetadataOrBuilder

      public ImageClassificationDatasetMetadataOrBuilder getImageClassificationDatasetMetadataOrBuilder()
       Metadata for a dataset used for image classification.
       
      .google.cloud.automl.v1.ImageClassificationDatasetMetadata image_classification_dataset_metadata = 24;
      Specified by:
      getImageClassificationDatasetMetadataOrBuilder in interface DatasetOrBuilder
    • hasTextClassificationDatasetMetadata

      public boolean hasTextClassificationDatasetMetadata()
       Metadata for a dataset used for text classification.
       
      .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25;
      Specified by:
      hasTextClassificationDatasetMetadata in interface DatasetOrBuilder
      Returns:
      Whether the textClassificationDatasetMetadata field is set.
    • getTextClassificationDatasetMetadata

      public TextClassificationDatasetMetadata getTextClassificationDatasetMetadata()
       Metadata for a dataset used for text classification.
       
      .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25;
      Specified by:
      getTextClassificationDatasetMetadata in interface DatasetOrBuilder
      Returns:
      The textClassificationDatasetMetadata.
    • getTextClassificationDatasetMetadataOrBuilder

      public TextClassificationDatasetMetadataOrBuilder getTextClassificationDatasetMetadataOrBuilder()
       Metadata for a dataset used for text classification.
       
      .google.cloud.automl.v1.TextClassificationDatasetMetadata text_classification_dataset_metadata = 25;
      Specified by:
      getTextClassificationDatasetMetadataOrBuilder in interface DatasetOrBuilder
    • hasImageObjectDetectionDatasetMetadata

      public boolean hasImageObjectDetectionDatasetMetadata()
       Metadata for a dataset used for image object detection.
       
      .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26;
      Specified by:
      hasImageObjectDetectionDatasetMetadata in interface DatasetOrBuilder
      Returns:
      Whether the imageObjectDetectionDatasetMetadata field is set.
    • getImageObjectDetectionDatasetMetadata

      public ImageObjectDetectionDatasetMetadata getImageObjectDetectionDatasetMetadata()
       Metadata for a dataset used for image object detection.
       
      .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26;
      Specified by:
      getImageObjectDetectionDatasetMetadata in interface DatasetOrBuilder
      Returns:
      The imageObjectDetectionDatasetMetadata.
    • getImageObjectDetectionDatasetMetadataOrBuilder

      public ImageObjectDetectionDatasetMetadataOrBuilder getImageObjectDetectionDatasetMetadataOrBuilder()
       Metadata for a dataset used for image object detection.
       
      .google.cloud.automl.v1.ImageObjectDetectionDatasetMetadata image_object_detection_dataset_metadata = 26;
      Specified by:
      getImageObjectDetectionDatasetMetadataOrBuilder in interface DatasetOrBuilder
    • hasTextExtractionDatasetMetadata

      public boolean hasTextExtractionDatasetMetadata()
       Metadata for a dataset used for text extraction.
       
      .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28;
      Specified by:
      hasTextExtractionDatasetMetadata in interface DatasetOrBuilder
      Returns:
      Whether the textExtractionDatasetMetadata field is set.
    • getTextExtractionDatasetMetadata

      public TextExtractionDatasetMetadata getTextExtractionDatasetMetadata()
       Metadata for a dataset used for text extraction.
       
      .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28;
      Specified by:
      getTextExtractionDatasetMetadata in interface DatasetOrBuilder
      Returns:
      The textExtractionDatasetMetadata.
    • getTextExtractionDatasetMetadataOrBuilder

      public TextExtractionDatasetMetadataOrBuilder getTextExtractionDatasetMetadataOrBuilder()
       Metadata for a dataset used for text extraction.
       
      .google.cloud.automl.v1.TextExtractionDatasetMetadata text_extraction_dataset_metadata = 28;
      Specified by:
      getTextExtractionDatasetMetadataOrBuilder in interface DatasetOrBuilder
    • hasTextSentimentDatasetMetadata

      public boolean hasTextSentimentDatasetMetadata()
       Metadata for a dataset used for text sentiment.
       
      .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30;
      Specified by:
      hasTextSentimentDatasetMetadata in interface DatasetOrBuilder
      Returns:
      Whether the textSentimentDatasetMetadata field is set.
    • getTextSentimentDatasetMetadata

      public TextSentimentDatasetMetadata getTextSentimentDatasetMetadata()
       Metadata for a dataset used for text sentiment.
       
      .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30;
      Specified by:
      getTextSentimentDatasetMetadata in interface DatasetOrBuilder
      Returns:
      The textSentimentDatasetMetadata.
    • getTextSentimentDatasetMetadataOrBuilder

      public TextSentimentDatasetMetadataOrBuilder getTextSentimentDatasetMetadataOrBuilder()
       Metadata for a dataset used for text sentiment.
       
      .google.cloud.automl.v1.TextSentimentDatasetMetadata text_sentiment_dataset_metadata = 30;
      Specified by:
      getTextSentimentDatasetMetadataOrBuilder in interface DatasetOrBuilder
    • getName

      public String getName()
       Output only. The resource name of the dataset.
       Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`
       
      string name = 1;
      Specified by:
      getName in interface DatasetOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. The resource name of the dataset.
       Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`
       
      string name = 1;
      Specified by:
      getNameBytes in interface DatasetOrBuilder
      Returns:
      The bytes for name.
    • getDisplayName

      public String getDisplayName()
       Required. The name of the dataset to show in the interface. The name can be
       up to 32 characters long and can consist only of ASCII Latin letters A-Z
       and a-z, underscores
       (_), and ASCII digits 0-9.
       
      string display_name = 2;
      Specified by:
      getDisplayName in interface DatasetOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Required. The name of the dataset to show in the interface. The name can be
       up to 32 characters long and can consist only of ASCII Latin letters A-Z
       and a-z, underscores
       (_), and ASCII digits 0-9.
       
      string display_name = 2;
      Specified by:
      getDisplayNameBytes in interface DatasetOrBuilder
      Returns:
      The bytes for displayName.
    • getDescription

      public String getDescription()
       User-provided description of the dataset. The description can be up to
       25000 characters long.
       
      string description = 3;
      Specified by:
      getDescription in interface DatasetOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       User-provided description of the dataset. The description can be up to
       25000 characters long.
       
      string description = 3;
      Specified by:
      getDescriptionBytes in interface DatasetOrBuilder
      Returns:
      The bytes for description.
    • getExampleCount

      public int getExampleCount()
       Output only. The number of examples in the dataset.
       
      int32 example_count = 21;
      Specified by:
      getExampleCount in interface DatasetOrBuilder
      Returns:
      The exampleCount.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. Timestamp when this dataset was created.
       
      .google.protobuf.Timestamp create_time = 14;
      Specified by:
      hasCreateTime in interface DatasetOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. Timestamp when this dataset was created.
       
      .google.protobuf.Timestamp create_time = 14;
      Specified by:
      getCreateTime in interface DatasetOrBuilder
      Returns:
      The createTime.
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. Timestamp when this dataset was created.
       
      .google.protobuf.Timestamp create_time = 14;
      Specified by:
      getCreateTimeOrBuilder in interface DatasetOrBuilder
    • getEtag

      public String getEtag()
       Used to perform consistent read-modify-write updates. If not set, a blind
       "overwrite" update happens.
       
      string etag = 17;
      Specified by:
      getEtag in interface DatasetOrBuilder
      Returns:
      The etag.
    • getEtagBytes

      public com.google.protobuf.ByteString getEtagBytes()
       Used to perform consistent read-modify-write updates. If not set, a blind
       "overwrite" update happens.
       
      string etag = 17;
      Specified by:
      getEtagBytes in interface DatasetOrBuilder
      Returns:
      The bytes for etag.
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: DatasetOrBuilder
       Optional. The labels with user-defined metadata to organize your dataset.
      
       Label keys and values can be no longer than 64 characters
       (Unicode codepoints), can only contain lowercase letters, numeric
       characters, underscores and dashes. International characters are allowed.
       Label values are optional. Label keys must start with a letter.
      
       See https://goo.gl/xmQnxf for more information on and examples of labels.
       
      map<string, string> labels = 39;
      Specified by:
      getLabelsCount in interface DatasetOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Optional. The labels with user-defined metadata to organize your dataset.
      
       Label keys and values can be no longer than 64 characters
       (Unicode codepoints), can only contain lowercase letters, numeric
       characters, underscores and dashes. International characters are allowed.
       Label values are optional. Label keys must start with a letter.
      
       See https://goo.gl/xmQnxf for more information on and examples of labels.
       
      map<string, string> labels = 39;
      Specified by:
      containsLabels in interface DatasetOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface DatasetOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Optional. The labels with user-defined metadata to organize your dataset.
      
       Label keys and values can be no longer than 64 characters
       (Unicode codepoints), can only contain lowercase letters, numeric
       characters, underscores and dashes. International characters are allowed.
       Label values are optional. Label keys must start with a letter.
      
       See https://goo.gl/xmQnxf for more information on and examples of labels.
       
      map<string, string> labels = 39;
      Specified by:
      getLabelsMap in interface DatasetOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Optional. The labels with user-defined metadata to organize your dataset.
      
       Label keys and values can be no longer than 64 characters
       (Unicode codepoints), can only contain lowercase letters, numeric
       characters, underscores and dashes. International characters are allowed.
       Label values are optional. Label keys must start with a letter.
      
       See https://goo.gl/xmQnxf for more information on and examples of labels.
       
      map<string, string> labels = 39;
      Specified by:
      getLabelsOrDefault in interface DatasetOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Optional. The labels with user-defined metadata to organize your dataset.
      
       Label keys and values can be no longer than 64 characters
       (Unicode codepoints), can only contain lowercase letters, numeric
       characters, underscores and dashes. International characters are allowed.
       Label values are optional. Label keys must start with a letter.
      
       See https://goo.gl/xmQnxf for more information on and examples of labels.
       
      map<string, string> labels = 39;
      Specified by:
      getLabelsOrThrow in interface DatasetOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Dataset parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Dataset parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Dataset parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Dataset parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Dataset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Dataset parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Dataset parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Dataset parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Dataset parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Dataset parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Dataset parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Dataset parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Dataset.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Dataset.Builder newBuilder()
    • newBuilder

      public static Dataset.Builder newBuilder(Dataset prototype)
    • toBuilder

      public Dataset.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Dataset.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Dataset getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Dataset> parser()
    • getParserForType

      public com.google.protobuf.Parser<Dataset> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public Dataset getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder