Class ImportDataConfig (3.44.0)

public final class ImportDataConfig extends GeneratedMessageV3 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.v1beta1.ImportDataConfig

Static Fields

ANNOTATION_LABELS_FIELD_NUMBER

public static final int ANNOTATION_LABELS_FIELD_NUMBER
Field Value
Type Description
int

DATA_ITEM_LABELS_FIELD_NUMBER

public static final int DATA_ITEM_LABELS_FIELD_NUMBER
Field Value
Type Description
int

GCS_SOURCE_FIELD_NUMBER

public static final int GCS_SOURCE_FIELD_NUMBER
Field Value
Type Description
int

IMPORT_SCHEMA_URI_FIELD_NUMBER

public static final int IMPORT_SCHEMA_URI_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ImportDataConfig getDefaultInstance()
Returns
Type Description
ImportDataConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static ImportDataConfig.Builder newBuilder()
Returns
Type Description
ImportDataConfig.Builder

newBuilder(ImportDataConfig prototype)

public static ImportDataConfig.Builder newBuilder(ImportDataConfig prototype)
Parameter
Name Description
prototype ImportDataConfig
Returns
Type Description
ImportDataConfig.Builder

parseDelimitedFrom(InputStream input)

public static ImportDataConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ImportDataConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ImportDataConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImportDataConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ImportDataConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ImportDataConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ImportDataConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImportDataConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ImportDataConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ImportDataConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ImportDataConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImportDataConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ImportDataConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ImportDataConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ImportDataConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImportDataConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ImportDataConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ImportDataConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ImportDataConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImportDataConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ImportDataConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ImportDataConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ImportDataConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImportDataConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ImportDataConfig> parser()
Returns
Type Description
Parser<ImportDataConfig>

Methods

containsAnnotationLabels(String key)

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, payload_schema_uri and all of their labels are the same. These labels will be overridden by Annotation labels specified inside index file referenced by import_schema_uri, e.g. jsonl file.

map<string, string> annotation_labels = 3;

Parameter
Name Description
key String
Returns
Type Description
boolean

containsDataItemLabels(String key)

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, e.g. jsonl file.

map<string, string> data_item_labels = 2;

Parameter
Name Description
key String
Returns
Type Description
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAnnotationLabels() (deprecated)

public Map<String,String> getAnnotationLabels()
Returns
Type Description
Map<String,String>

getAnnotationLabelsCount()

public int getAnnotationLabelsCount()

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, payload_schema_uri and all of their labels are the same. These labels will be overridden by Annotation labels specified inside index file referenced by import_schema_uri, e.g. jsonl file.

map<string, string> annotation_labels = 3;

Returns
Type Description
int

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, payload_schema_uri and all of their labels are the same. These labels will be overridden by Annotation labels specified inside index file referenced by import_schema_uri, e.g. jsonl file.

map<string, string> annotation_labels = 3;

Returns
Type Description
Map<String,String>

getAnnotationLabelsOrDefault(String key, String defaultValue)

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, payload_schema_uri and all of their labels are the same. These labels will be overridden by Annotation labels specified inside index file referenced by import_schema_uri, e.g. jsonl file.

map<string, string> annotation_labels = 3;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getAnnotationLabelsOrThrow(String key)

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, payload_schema_uri and all of their labels are the same. These labels will be overridden by Annotation labels specified inside index file referenced by import_schema_uri, e.g. jsonl file.

map<string, string> annotation_labels = 3;

Parameter
Name Description
key String
Returns
Type Description
String

getDataItemLabels() (deprecated)

public Map<String,String> getDataItemLabels()
Returns
Type Description
Map<String,String>

getDataItemLabelsCount()

public int getDataItemLabelsCount()

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, e.g. jsonl file.

map<string, string> data_item_labels = 2;

Returns
Type Description
int

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, e.g. jsonl file.

map<string, string> data_item_labels = 2;

Returns
Type Description
Map<String,String>

getDataItemLabelsOrDefault(String key, String defaultValue)

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, e.g. jsonl file.

map<string, string> data_item_labels = 2;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getDataItemLabelsOrThrow(String key)

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, e.g. jsonl file.

map<string, string> data_item_labels = 2;

Parameter
Name Description
key String
Returns
Type Description
String

getDefaultInstanceForType()

public ImportDataConfig getDefaultInstanceForType()
Returns
Type Description
ImportDataConfig

getGcsSource()

public GcsSource getGcsSource()

The Google Cloud Storage location for the input content.

.google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1;

Returns
Type Description
GcsSource

The gcsSource.

getGcsSourceOrBuilder()

public GcsSourceOrBuilder getGcsSourceOrBuilder()

The Google Cloud Storage location for the input content.

.google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1;

Returns
Type Description
GcsSourceOrBuilder

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.

string import_schema_uri = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The importSchemaUri.

getImportSchemaUriBytes()

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

string import_schema_uri = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for importSchemaUri.

getParserForType()

public Parser<ImportDataConfig> getParserForType()
Returns
Type Description
Parser<ImportDataConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSourceCase()

public ImportDataConfig.SourceCase getSourceCase()
Returns
Type Description
ImportDataConfig.SourceCase

hasGcsSource()

public boolean hasGcsSource()

The Google Cloud Storage location for the input content.

.google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1;

Returns
Type Description
boolean

Whether the gcsSource field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ImportDataConfig.Builder newBuilderForType()
Returns
Type Description
ImportDataConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ImportDataConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ImportDataConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ImportDataConfig.Builder toBuilder()
Returns
Type Description
ImportDataConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException