Class ImportDataConfig.Builder

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

public static final class ImportDataConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<ImportDataConfig.Builder> implements ImportDataConfigOrBuilder
 Describes the location from where we import data into a Dataset, together
 with the labels that will be applied to the DataItems and the Annotations.
 
Protobuf type google.cloud.aiplatform.v1.ImportDataConfig
  • 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.Builder<ImportDataConfig.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<ImportDataConfig.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ImportDataConfig.Builder>
    • clear

      public ImportDataConfig.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<ImportDataConfig.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<ImportDataConfig.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ImportDataConfig.Builder mergeFrom(ImportDataConfig other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ImportDataConfig.Builder>
    • mergeFrom

      public ImportDataConfig.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<ImportDataConfig.Builder>
      Throws:
      IOException
    • getSourceCase

      public ImportDataConfig.SourceCase getSourceCase()
      Specified by:
      getSourceCase in interface ImportDataConfigOrBuilder
    • clearSource

      public ImportDataConfig.Builder clearSource()
    • hasGcsSource

      public boolean hasGcsSource()
       The Google Cloud Storage location for the input content.
       
      .google.cloud.aiplatform.v1.GcsSource gcs_source = 1;
      Specified by:
      hasGcsSource in interface ImportDataConfigOrBuilder
      Returns:
      Whether the gcsSource field is set.
    • getGcsSource

      public GcsSource getGcsSource()
       The Google Cloud Storage location for the input content.
       
      .google.cloud.aiplatform.v1.GcsSource gcs_source = 1;
      Specified by:
      getGcsSource in interface ImportDataConfigOrBuilder
      Returns:
      The gcsSource.
    • setGcsSource

      public ImportDataConfig.Builder setGcsSource(GcsSource value)
       The Google Cloud Storage location for the input content.
       
      .google.cloud.aiplatform.v1.GcsSource gcs_source = 1;
    • setGcsSource

      public ImportDataConfig.Builder setGcsSource(GcsSource.Builder builderForValue)
       The Google Cloud Storage location for the input content.
       
      .google.cloud.aiplatform.v1.GcsSource gcs_source = 1;
    • mergeGcsSource

      public ImportDataConfig.Builder mergeGcsSource(GcsSource value)
       The Google Cloud Storage location for the input content.
       
      .google.cloud.aiplatform.v1.GcsSource gcs_source = 1;
    • clearGcsSource

      public ImportDataConfig.Builder clearGcsSource()
       The Google Cloud Storage location for the input content.
       
      .google.cloud.aiplatform.v1.GcsSource gcs_source = 1;
    • getGcsSourceBuilder

      public GcsSource.Builder getGcsSourceBuilder()
       The Google Cloud Storage location for the input content.
       
      .google.cloud.aiplatform.v1.GcsSource gcs_source = 1;
    • getGcsSourceOrBuilder

      public GcsSourceOrBuilder getGcsSourceOrBuilder()
       The Google Cloud Storage location for the input content.
       
      .google.cloud.aiplatform.v1.GcsSource gcs_source = 1;
      Specified by:
      getGcsSourceOrBuilder in interface ImportDataConfigOrBuilder
    • getDataItemLabelsCount

      public int getDataItemLabelsCount()
      Description copied from interface: ImportDataConfigOrBuilder
       Labels that will be applied to newly imported DataItems. If an identical
       DataItem as one being imported already exists in the Dataset, then these
       labels will be appended to these of the already existing one, and if labels
       with identical key is imported before, the old label value will be
       overwritten. If two DataItems are identical in the same import data
       operation, the labels will be combined and if key collision happens in this
       case, one of the values will be picked randomly. Two DataItems are
       considered identical if their content bytes are identical (e.g. image bytes
       or pdf bytes).
       These labels will be overridden by Annotation labels specified inside index
       file referenced by
       [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri],
       e.g. jsonl file.
       
      map<string, string> data_item_labels = 2;
      Specified by:
      getDataItemLabelsCount in interface ImportDataConfigOrBuilder
    • containsDataItemLabels

      public boolean containsDataItemLabels(String key)
       Labels that will be applied to newly imported DataItems. If an identical
       DataItem as one being imported already exists in the Dataset, then these
       labels will be appended to these of the already existing one, and if labels
       with identical key is imported before, the old label value will be
       overwritten. If two DataItems are identical in the same import data
       operation, the labels will be combined and if key collision happens in this
       case, one of the values will be picked randomly. Two DataItems are
       considered identical if their content bytes are identical (e.g. image bytes
       or pdf bytes).
       These labels will be overridden by Annotation labels specified inside index
       file referenced by
       [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri],
       e.g. jsonl file.
       
      map<string, string> data_item_labels = 2;
      Specified by:
      containsDataItemLabels in interface ImportDataConfigOrBuilder
    • getDataItemLabels

      @Deprecated public Map<String,String> getDataItemLabels()
      Deprecated.
      Specified by:
      getDataItemLabels in interface ImportDataConfigOrBuilder
    • getDataItemLabelsMap

      public Map<String,String> getDataItemLabelsMap()
       Labels that will be applied to newly imported DataItems. If an identical
       DataItem as one being imported already exists in the Dataset, then these
       labels will be appended to these of the already existing one, and if labels
       with identical key is imported before, the old label value will be
       overwritten. If two DataItems are identical in the same import data
       operation, the labels will be combined and if key collision happens in this
       case, one of the values will be picked randomly. Two DataItems are
       considered identical if their content bytes are identical (e.g. image bytes
       or pdf bytes).
       These labels will be overridden by Annotation labels specified inside index
       file referenced by
       [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri],
       e.g. jsonl file.
       
      map<string, string> data_item_labels = 2;
      Specified by:
      getDataItemLabelsMap in interface ImportDataConfigOrBuilder
    • getDataItemLabelsOrDefault

      public String getDataItemLabelsOrDefault(String key, String defaultValue)
       Labels that will be applied to newly imported DataItems. If an identical
       DataItem as one being imported already exists in the Dataset, then these
       labels will be appended to these of the already existing one, and if labels
       with identical key is imported before, the old label value will be
       overwritten. If two DataItems are identical in the same import data
       operation, the labels will be combined and if key collision happens in this
       case, one of the values will be picked randomly. Two DataItems are
       considered identical if their content bytes are identical (e.g. image bytes
       or pdf bytes).
       These labels will be overridden by Annotation labels specified inside index
       file referenced by
       [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri],
       e.g. jsonl file.
       
      map<string, string> data_item_labels = 2;
      Specified by:
      getDataItemLabelsOrDefault in interface ImportDataConfigOrBuilder
    • getDataItemLabelsOrThrow

      public String getDataItemLabelsOrThrow(String key)
       Labels that will be applied to newly imported DataItems. If an identical
       DataItem as one being imported already exists in the Dataset, then these
       labels will be appended to these of the already existing one, and if labels
       with identical key is imported before, the old label value will be
       overwritten. If two DataItems are identical in the same import data
       operation, the labels will be combined and if key collision happens in this
       case, one of the values will be picked randomly. Two DataItems are
       considered identical if their content bytes are identical (e.g. image bytes
       or pdf bytes).
       These labels will be overridden by Annotation labels specified inside index
       file referenced by
       [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri],
       e.g. jsonl file.
       
      map<string, string> data_item_labels = 2;
      Specified by:
      getDataItemLabelsOrThrow in interface ImportDataConfigOrBuilder
    • clearDataItemLabels

      public ImportDataConfig.Builder clearDataItemLabels()
    • removeDataItemLabels

      public ImportDataConfig.Builder removeDataItemLabels(String key)
       Labels that will be applied to newly imported DataItems. If an identical
       DataItem as one being imported already exists in the Dataset, then these
       labels will be appended to these of the already existing one, and if labels
       with identical key is imported before, the old label value will be
       overwritten. If two DataItems are identical in the same import data
       operation, the labels will be combined and if key collision happens in this
       case, one of the values will be picked randomly. Two DataItems are
       considered identical if their content bytes are identical (e.g. image bytes
       or pdf bytes).
       These labels will be overridden by Annotation labels specified inside index
       file referenced by
       [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri],
       e.g. jsonl file.
       
      map<string, string> data_item_labels = 2;
    • getMutableDataItemLabels

      @Deprecated public Map<String,String> getMutableDataItemLabels()
      Deprecated.
      Use alternate mutation accessors instead.
    • putDataItemLabels

      public ImportDataConfig.Builder putDataItemLabels(String key, String value)
       Labels that will be applied to newly imported DataItems. If an identical
       DataItem as one being imported already exists in the Dataset, then these
       labels will be appended to these of the already existing one, and if labels
       with identical key is imported before, the old label value will be
       overwritten. If two DataItems are identical in the same import data
       operation, the labels will be combined and if key collision happens in this
       case, one of the values will be picked randomly. Two DataItems are
       considered identical if their content bytes are identical (e.g. image bytes
       or pdf bytes).
       These labels will be overridden by Annotation labels specified inside index
       file referenced by
       [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri],
       e.g. jsonl file.
       
      map<string, string> data_item_labels = 2;
    • putAllDataItemLabels

      public ImportDataConfig.Builder putAllDataItemLabels(Map<String,String> values)
       Labels that will be applied to newly imported DataItems. If an identical
       DataItem as one being imported already exists in the Dataset, then these
       labels will be appended to these of the already existing one, and if labels
       with identical key is imported before, the old label value will be
       overwritten. If two DataItems are identical in the same import data
       operation, the labels will be combined and if key collision happens in this
       case, one of the values will be picked randomly. Two DataItems are
       considered identical if their content bytes are identical (e.g. image bytes
       or pdf bytes).
       These labels will be overridden by Annotation labels specified inside index
       file referenced by
       [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri],
       e.g. jsonl file.
       
      map<string, string> data_item_labels = 2;
    • getAnnotationLabelsCount

      public int getAnnotationLabelsCount()
      Description copied from interface: ImportDataConfigOrBuilder
       Labels that will be applied to newly imported Annotations. If two
       Annotations are identical, one of them will be deduped. Two Annotations are
       considered identical if their
       [payload][google.cloud.aiplatform.v1.Annotation.payload],
       [payload_schema_uri][google.cloud.aiplatform.v1.Annotation.payload_schema_uri]
       and all of their [labels][google.cloud.aiplatform.v1.Annotation.labels] are
       the same. These labels will be overridden by Annotation labels specified
       inside index file referenced by
       [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri],
       e.g. jsonl file.
       
      map<string, string> annotation_labels = 3;
      Specified by:
      getAnnotationLabelsCount in interface ImportDataConfigOrBuilder
    • containsAnnotationLabels

      public boolean containsAnnotationLabels(String key)
       Labels that will be applied to newly imported Annotations. If two
       Annotations are identical, one of them will be deduped. Two Annotations are
       considered identical if their
       [payload][google.cloud.aiplatform.v1.Annotation.payload],
       [payload_schema_uri][google.cloud.aiplatform.v1.Annotation.payload_schema_uri]
       and all of their [labels][google.cloud.aiplatform.v1.Annotation.labels] are
       the same. These labels will be overridden by Annotation labels specified
       inside index file referenced by
       [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri],
       e.g. jsonl file.
       
      map<string, string> annotation_labels = 3;
      Specified by:
      containsAnnotationLabels in interface ImportDataConfigOrBuilder
    • getAnnotationLabels

      @Deprecated public Map<String,String> getAnnotationLabels()
      Deprecated.
      Specified by:
      getAnnotationLabels in interface ImportDataConfigOrBuilder
    • getAnnotationLabelsMap

      public Map<String,String> getAnnotationLabelsMap()
       Labels that will be applied to newly imported Annotations. If two
       Annotations are identical, one of them will be deduped. Two Annotations are
       considered identical if their
       [payload][google.cloud.aiplatform.v1.Annotation.payload],
       [payload_schema_uri][google.cloud.aiplatform.v1.Annotation.payload_schema_uri]
       and all of their [labels][google.cloud.aiplatform.v1.Annotation.labels] are
       the same. These labels will be overridden by Annotation labels specified
       inside index file referenced by
       [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri],
       e.g. jsonl file.
       
      map<string, string> annotation_labels = 3;
      Specified by:
      getAnnotationLabelsMap in interface ImportDataConfigOrBuilder
    • getAnnotationLabelsOrDefault

      public String getAnnotationLabelsOrDefault(String key, String defaultValue)
       Labels that will be applied to newly imported Annotations. If two
       Annotations are identical, one of them will be deduped. Two Annotations are
       considered identical if their
       [payload][google.cloud.aiplatform.v1.Annotation.payload],
       [payload_schema_uri][google.cloud.aiplatform.v1.Annotation.payload_schema_uri]
       and all of their [labels][google.cloud.aiplatform.v1.Annotation.labels] are
       the same. These labels will be overridden by Annotation labels specified
       inside index file referenced by
       [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri],
       e.g. jsonl file.
       
      map<string, string> annotation_labels = 3;
      Specified by:
      getAnnotationLabelsOrDefault in interface ImportDataConfigOrBuilder
    • getAnnotationLabelsOrThrow

      public String getAnnotationLabelsOrThrow(String key)
       Labels that will be applied to newly imported Annotations. If two
       Annotations are identical, one of them will be deduped. Two Annotations are
       considered identical if their
       [payload][google.cloud.aiplatform.v1.Annotation.payload],
       [payload_schema_uri][google.cloud.aiplatform.v1.Annotation.payload_schema_uri]
       and all of their [labels][google.cloud.aiplatform.v1.Annotation.labels] are
       the same. These labels will be overridden by Annotation labels specified
       inside index file referenced by
       [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri],
       e.g. jsonl file.
       
      map<string, string> annotation_labels = 3;
      Specified by:
      getAnnotationLabelsOrThrow in interface ImportDataConfigOrBuilder
    • clearAnnotationLabels

      public ImportDataConfig.Builder clearAnnotationLabels()
    • removeAnnotationLabels

      public ImportDataConfig.Builder removeAnnotationLabels(String key)
       Labels that will be applied to newly imported Annotations. If two
       Annotations are identical, one of them will be deduped. Two Annotations are
       considered identical if their
       [payload][google.cloud.aiplatform.v1.Annotation.payload],
       [payload_schema_uri][google.cloud.aiplatform.v1.Annotation.payload_schema_uri]
       and all of their [labels][google.cloud.aiplatform.v1.Annotation.labels] are
       the same. These labels will be overridden by Annotation labels specified
       inside index file referenced by
       [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri],
       e.g. jsonl file.
       
      map<string, string> annotation_labels = 3;
    • getMutableAnnotationLabels

      @Deprecated public Map<String,String> getMutableAnnotationLabels()
      Deprecated.
      Use alternate mutation accessors instead.
    • putAnnotationLabels

      public ImportDataConfig.Builder putAnnotationLabels(String key, String value)
       Labels that will be applied to newly imported Annotations. If two
       Annotations are identical, one of them will be deduped. Two Annotations are
       considered identical if their
       [payload][google.cloud.aiplatform.v1.Annotation.payload],
       [payload_schema_uri][google.cloud.aiplatform.v1.Annotation.payload_schema_uri]
       and all of their [labels][google.cloud.aiplatform.v1.Annotation.labels] are
       the same. These labels will be overridden by Annotation labels specified
       inside index file referenced by
       [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri],
       e.g. jsonl file.
       
      map<string, string> annotation_labels = 3;
    • putAllAnnotationLabels

      public ImportDataConfig.Builder putAllAnnotationLabels(Map<String,String> values)
       Labels that will be applied to newly imported Annotations. If two
       Annotations are identical, one of them will be deduped. Two Annotations are
       considered identical if their
       [payload][google.cloud.aiplatform.v1.Annotation.payload],
       [payload_schema_uri][google.cloud.aiplatform.v1.Annotation.payload_schema_uri]
       and all of their [labels][google.cloud.aiplatform.v1.Annotation.labels] are
       the same. These labels will be overridden by Annotation labels specified
       inside index file referenced by
       [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri],
       e.g. jsonl file.
       
      map<string, string> annotation_labels = 3;
    • getImportSchemaUri

      public String getImportSchemaUri()
       Required. Points to a YAML file stored on Google Cloud Storage describing
       the import format. Validation will be done against the schema. The schema
       is defined as an [OpenAPI 3.0.2 Schema
       Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
       
      string import_schema_uri = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getImportSchemaUri in interface ImportDataConfigOrBuilder
      Returns:
      The importSchemaUri.
    • getImportSchemaUriBytes

      public com.google.protobuf.ByteString getImportSchemaUriBytes()
       Required. Points to a YAML file stored on Google Cloud Storage describing
       the import format. Validation will be done against the schema. The schema
       is defined as an [OpenAPI 3.0.2 Schema
       Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
       
      string import_schema_uri = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getImportSchemaUriBytes in interface ImportDataConfigOrBuilder
      Returns:
      The bytes for importSchemaUri.
    • setImportSchemaUri

      public ImportDataConfig.Builder setImportSchemaUri(String value)
       Required. Points to a YAML file stored on Google Cloud Storage describing
       the import format. Validation will be done against the schema. The schema
       is defined as an [OpenAPI 3.0.2 Schema
       Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
       
      string import_schema_uri = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The importSchemaUri to set.
      Returns:
      This builder for chaining.
    • clearImportSchemaUri

      public ImportDataConfig.Builder clearImportSchemaUri()
       Required. Points to a YAML file stored on Google Cloud Storage describing
       the import format. Validation will be done against the schema. The schema
       is defined as an [OpenAPI 3.0.2 Schema
       Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
       
      string import_schema_uri = 4 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setImportSchemaUriBytes

      public ImportDataConfig.Builder setImportSchemaUriBytes(com.google.protobuf.ByteString value)
       Required. Points to a YAML file stored on Google Cloud Storage describing
       the import format. Validation will be done against the schema. The schema
       is defined as an [OpenAPI 3.0.2 Schema
       Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
       
      string import_schema_uri = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for importSchemaUri to set.
      Returns:
      This builder for chaining.