public static final class ImportDataConfig.Builder extends GeneratedMessageV3.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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public ImportDataConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public ImportDataConfig build()
public ImportDataConfig buildPartial()
public ImportDataConfig.Builder clear()
Overrides
public ImportDataConfig.Builder clearAnnotationLabels()
public ImportDataConfig.Builder clearDataItemLabels()
public ImportDataConfig.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public ImportDataConfig.Builder clearGcsSource()
The Google Cloud Storage location for the input content.
.google.cloud.aiplatform.v1.GcsSource gcs_source = 1;
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.
string import_schema_uri = 4 [(.google.api.field_behavior) = REQUIRED];
public ImportDataConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public ImportDataConfig.Builder clearSource()
public ImportDataConfig.Builder clone()
Overrides
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 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 Descriptors.Descriptor getDescriptorForType()
Overrides
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 GcsSource.Builder getGcsSourceBuilder()
The Google Cloud Storage location for the input content.
.google.cloud.aiplatform.v1.GcsSource gcs_source = 1;
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 Map<String,String> getMutableAnnotationLabels()
Use alternate mutation accessors instead.
public Map<String,String> getMutableDataItemLabels()
Use alternate mutation accessors instead.
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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter |
---|
Name | Description |
number | int
|
Returns |
---|
Type | Description |
com.google.protobuf.MapFieldReflectionAccessor | |
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter |
---|
Name | Description |
number | int
|
Returns |
---|
Type | Description |
com.google.protobuf.MapFieldReflectionAccessor | |
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
public final boolean isInitialized()
Overrides
public ImportDataConfig.Builder mergeFrom(ImportDataConfig other)
public ImportDataConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public ImportDataConfig.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
public ImportDataConfig.Builder mergeGcsSource(GcsSource value)
The Google Cloud Storage location for the input content.
.google.cloud.aiplatform.v1.GcsSource gcs_source = 1;
public final ImportDataConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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,
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 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,
e.g. jsonl file.
map<string, string> data_item_labels = 2;
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,
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 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,
e.g. jsonl file.
map<string, string> data_item_labels = 2;
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,
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 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,
e.g. jsonl file.
map<string, string> data_item_labels = 2;
Parameter |
---|
Name | Description |
key | String
|
public ImportDataConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public ImportDataConfig.Builder setGcsSource(GcsSource value)
The Google Cloud Storage location for the input content.
.google.cloud.aiplatform.v1.GcsSource gcs_source = 1;
public ImportDataConfig.Builder setGcsSource(GcsSource.Builder builderForValue)
The Google Cloud Storage location for the input content.
.google.cloud.aiplatform.v1.GcsSource gcs_source = 1;
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.
string import_schema_uri = 4 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
value | String
The importSchemaUri to set.
|
public ImportDataConfig.Builder setImportSchemaUriBytes(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.
string import_schema_uri = 4 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
value | ByteString
The bytes for importSchemaUri to set.
|
public ImportDataConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final ImportDataConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides