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.v1.ImportDataConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
Static Fields
public static final int ANNOTATION_LABELS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int DATA_ITEM_LABELS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int GCS_SOURCE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int IMPORT_SCHEMA_URI_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
public static ImportDataConfig getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static ImportDataConfig.Builder newBuilder()
public static ImportDataConfig.Builder newBuilder(ImportDataConfig prototype)
public static ImportDataConfig parseDelimitedFrom(InputStream input)
public static ImportDataConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ImportDataConfig parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
public static ImportDataConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ImportDataConfig parseFrom(ByteString data)
public static ImportDataConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ImportDataConfig parseFrom(CodedInputStream input)
public static ImportDataConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ImportDataConfig parseFrom(InputStream input)
public static ImportDataConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ImportDataConfig parseFrom(ByteBuffer data)
public static ImportDataConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<ImportDataConfig> parser()
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 |
---|
Name | Description |
key | String
|
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
|
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
public Map<String,String> getAnnotationLabels()
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 | |
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;
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;
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
|
public Map<String,String> getDataItemLabels()
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 | |
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;
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;
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
|
public ImportDataConfig getDefaultInstanceForType()
public GcsSource getGcsSource()
The Google Cloud Storage location for the input content.
.google.cloud.aiplatform.v1.GcsSource gcs_source = 1;
Returns |
---|
Type | Description |
GcsSource | The gcsSource.
|
public GcsSourceOrBuilder getGcsSourceOrBuilder()
The Google Cloud Storage location for the input content.
.google.cloud.aiplatform.v1.GcsSource gcs_source = 1;
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()
Overrides
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
public ImportDataConfig.SourceCase getSourceCase()
public boolean hasGcsSource()
The Google Cloud Storage location for the input content.
.google.cloud.aiplatform.v1.GcsSource gcs_source = 1;
Returns |
---|
Type | Description |
boolean | Whether the gcsSource field is set.
|
Returns |
---|
Type | Description |
int | |
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
protected MapField internalGetMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
public final boolean isInitialized()
Overrides
public ImportDataConfig.Builder newBuilderForType()
protected ImportDataConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
public ImportDataConfig.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides