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
public static final int ANNOTATION_LABELS_FIELD_NUMBER
Field Value
public static final int DATA_ITEM_LABELS_FIELD_NUMBER
Field Value
public static final int GCS_SOURCE_FIELD_NUMBER
Field Value
public static final int IMPORT_SCHEMA_URI_FIELD_NUMBER
Field Value
Static Methods
public static ImportDataConfig getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static ImportDataConfig.Builder newBuilder()
Returns
public static ImportDataConfig.Builder newBuilder(ImportDataConfig prototype)
Parameter
Returns
public static ImportDataConfig parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static ImportDataConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ImportDataConfig parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static ImportDataConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ImportDataConfig parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static ImportDataConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ImportDataConfig parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static ImportDataConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ImportDataConfig parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static ImportDataConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ImportDataConfig parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static ImportDataConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<ImportDataConfig> parser()
Returns
Methods
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
Returns
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
Returns
public boolean equals(Object obj)
Parameter
Returns
Overrides
public Map<String,String> getAnnotationLabels()
Returns
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
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
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
Returns
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
Returns
public Map<String,String> getDataItemLabels()
Returns
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
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
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
Returns
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
Returns
public ImportDataConfig getDefaultInstanceForType()
Returns
public GcsSource getGcsSource()
The Google Cloud Storage location for the input content.
.google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1;
Returns
public GcsSourceOrBuilder getGcsSourceOrBuilder()
The Google Cloud Storage location for the input content.
.google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1;
Returns
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.
|
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.
|
public Parser<ImportDataConfig> getParserForType()
Returns
Overrides
public int getSerializedSize()
Returns
Overrides
public ImportDataConfig.SourceCase getSourceCase()
Returns
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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.
|
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public ImportDataConfig.Builder newBuilderForType()
Returns
protected ImportDataConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public ImportDataConfig.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions