Class ImportDataConfig

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.aiplatform.v1.ImportDataConfig
All Implemented Interfaces:
ImportDataConfigOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class ImportDataConfig extends com.google.protobuf.GeneratedMessage 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
See Also:
  • Field Details

    • GCS_SOURCE_FIELD_NUMBER

      public static final int GCS_SOURCE_FIELD_NUMBER
      See Also:
    • DATA_ITEM_LABELS_FIELD_NUMBER

      public static final int DATA_ITEM_LABELS_FIELD_NUMBER
      See Also:
    • ANNOTATION_LABELS_FIELD_NUMBER

      public static final int ANNOTATION_LABELS_FIELD_NUMBER
      See Also:
    • IMPORT_SCHEMA_URI_FIELD_NUMBER

      public static final int IMPORT_SCHEMA_URI_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
    • getSourceCase

      public ImportDataConfig.SourceCase getSourceCase()
      Specified by:
      getSourceCase in interface ImportDataConfigOrBuilder
    • 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.
    • 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
    • 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
    • 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.
    • 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 ImportDataConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static ImportDataConfig.Builder newBuilder()
    • newBuilder

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

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

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

      public static ImportDataConfig getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<ImportDataConfig> 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 ImportDataConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder