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.v1beta1.ImportDataConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
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()
Returns
Methods
public ImportDataConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public ImportDataConfig build()
Returns
public ImportDataConfig buildPartial()
Returns
public ImportDataConfig.Builder clear()
Returns
Overrides
public ImportDataConfig.Builder clearAnnotationLabels()
Returns
public ImportDataConfig.Builder clearDataItemLabels()
Returns
public ImportDataConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public ImportDataConfig.Builder clearGcsSource()
The Google Cloud Storage location for the input content.
.google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1;
Returns
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];
Returns
public ImportDataConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public ImportDataConfig.Builder clearSource()
Returns
public ImportDataConfig.Builder clone()
Returns
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
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 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 Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
public GcsSource getGcsSource()
The Google Cloud Storage location for the input content.
.google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1;
Returns
public GcsSource.Builder getGcsSourceBuilder()
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 Map<String,String> getMutableAnnotationLabels()
Use alternate mutation accessors instead.
Returns
public Map<String,String> getMutableDataItemLabels()
Use alternate mutation accessors instead.
Returns
public ImportDataConfig.SourceCase getSourceCase()
Returns
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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
protected MapField internalGetMutableMapField(int number)
Parameter
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public ImportDataConfig.Builder mergeFrom(ImportDataConfig other)
Parameter
Returns
public ImportDataConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public ImportDataConfig.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public ImportDataConfig.Builder mergeGcsSource(GcsSource value)
The Google Cloud Storage location for the input content.
.google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1;
Parameter
Returns
public final ImportDataConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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;
Parameter
Returns
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;
Parameter
Returns
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;
Parameters
Returns
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;
Parameters
Returns
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
Returns
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
Returns
public ImportDataConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public ImportDataConfig.Builder setGcsSource(GcsSource value)
The Google Cloud Storage location for the input content.
.google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1;
Parameter
Returns
public ImportDataConfig.Builder setGcsSource(GcsSource.Builder builderForValue)
The Google Cloud Storage location for the input content.
.google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 1;
Parameter
Returns
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.
|
Returns
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.
|
Returns
public ImportDataConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final ImportDataConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides