Package com.google.cloud.aiplatform.v1
Class ImportDataConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ImportDataConfig.Builder>
com.google.cloud.aiplatform.v1.ImportDataConfig.Builder
- All Implemented Interfaces:
ImportDataConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ImportDataConfig
public static final class ImportDataConfig.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The Google Cloud Storage location for the input content.Required.booleanLabels that will be applied to newly imported Annotations.booleanLabels that will be applied to newly imported DataItems.Deprecated.intLabels that will be applied to newly imported Annotations.Labels that will be applied to newly imported Annotations.getAnnotationLabelsOrDefault(String key, String defaultValue) Labels that will be applied to newly imported Annotations.Labels that will be applied to newly imported Annotations.Deprecated.intLabels that will be applied to newly imported DataItems.Labels that will be applied to newly imported DataItems.getDataItemLabelsOrDefault(String key, String defaultValue) Labels that will be applied to newly imported DataItems.Labels that will be applied to newly imported DataItems.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe Google Cloud Storage location for the input content.The Google Cloud Storage location for the input content.The Google Cloud Storage location for the input content.Required.com.google.protobuf.ByteStringRequired.Deprecated.Deprecated.booleanThe Google Cloud Storage location for the input content.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(ImportDataConfig other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeGcsSource(GcsSource value) The Google Cloud Storage location for the input content.putAllAnnotationLabels(Map<String, String> values) Labels that will be applied to newly imported Annotations.putAllDataItemLabels(Map<String, String> values) Labels that will be applied to newly imported DataItems.putAnnotationLabels(String key, String value) Labels that will be applied to newly imported Annotations.putDataItemLabels(String key, String value) Labels that will be applied to newly imported DataItems.Labels that will be applied to newly imported Annotations.Labels that will be applied to newly imported DataItems.setGcsSource(GcsSource value) The Google Cloud Storage location for the input content.setGcsSource(GcsSource.Builder builderForValue) The Google Cloud Storage location for the input content.setImportSchemaUri(String value) Required.setImportSchemaUriBytes(com.google.protobuf.ByteString value) Required.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<ImportDataConfig.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<ImportDataConfig.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ImportDataConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ImportDataConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ImportDataConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ImportDataConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ImportDataConfig.Builder>
-
mergeFrom
public ImportDataConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ImportDataConfig.Builder>- Throws:
IOException
-
getSourceCase
- Specified by:
getSourceCasein interfaceImportDataConfigOrBuilder
-
clearSource
-
hasGcsSource
public boolean hasGcsSource()The Google Cloud Storage location for the input content.
.google.cloud.aiplatform.v1.GcsSource gcs_source = 1;- Specified by:
hasGcsSourcein interfaceImportDataConfigOrBuilder- Returns:
- Whether the gcsSource field is set.
-
getGcsSource
The Google Cloud Storage location for the input content.
.google.cloud.aiplatform.v1.GcsSource gcs_source = 1;- Specified by:
getGcsSourcein interfaceImportDataConfigOrBuilder- Returns:
- The gcsSource.
-
setGcsSource
The Google Cloud Storage location for the input content.
.google.cloud.aiplatform.v1.GcsSource gcs_source = 1; -
setGcsSource
The Google Cloud Storage location for the input content.
.google.cloud.aiplatform.v1.GcsSource gcs_source = 1; -
mergeGcsSource
The Google Cloud Storage location for the input content.
.google.cloud.aiplatform.v1.GcsSource gcs_source = 1; -
clearGcsSource
The Google Cloud Storage location for the input content.
.google.cloud.aiplatform.v1.GcsSource gcs_source = 1; -
getGcsSourceBuilder
The Google Cloud Storage location for the input content.
.google.cloud.aiplatform.v1.GcsSource gcs_source = 1; -
getGcsSourceOrBuilder
The Google Cloud Storage location for the input content.
.google.cloud.aiplatform.v1.GcsSource gcs_source = 1;- Specified by:
getGcsSourceOrBuilderin interfaceImportDataConfigOrBuilder
-
getDataItemLabelsCount
public int getDataItemLabelsCount()Description copied from interface:ImportDataConfigOrBuilderLabels 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][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri], e.g. jsonl file.
map<string, string> data_item_labels = 2;- Specified by:
getDataItemLabelsCountin interfaceImportDataConfigOrBuilder
-
containsDataItemLabels
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][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri], e.g. jsonl file.
map<string, string> data_item_labels = 2;- Specified by:
containsDataItemLabelsin interfaceImportDataConfigOrBuilder
-
getDataItemLabels
Deprecated.UsegetDataItemLabelsMap()instead.- Specified by:
getDataItemLabelsin interfaceImportDataConfigOrBuilder
-
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][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri], e.g. jsonl file.
map<string, string> data_item_labels = 2;- Specified by:
getDataItemLabelsMapin interfaceImportDataConfigOrBuilder
-
getDataItemLabelsOrDefault
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][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri], e.g. jsonl file.
map<string, string> data_item_labels = 2;- Specified by:
getDataItemLabelsOrDefaultin interfaceImportDataConfigOrBuilder
-
getDataItemLabelsOrThrow
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][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri], e.g. jsonl file.
map<string, string> data_item_labels = 2;- Specified by:
getDataItemLabelsOrThrowin interfaceImportDataConfigOrBuilder
-
clearDataItemLabels
-
removeDataItemLabels
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][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri], e.g. jsonl file.
map<string, string> data_item_labels = 2; -
getMutableDataItemLabels
Deprecated.Use alternate mutation accessors instead. -
putDataItemLabels
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][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri], e.g. jsonl file.
map<string, string> data_item_labels = 2; -
putAllDataItemLabels
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][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri], e.g. jsonl file.
map<string, string> data_item_labels = 2; -
getAnnotationLabelsCount
public int getAnnotationLabelsCount()Description copied from interface:ImportDataConfigOrBuilderLabels 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][google.cloud.aiplatform.v1.Annotation.payload], [payload_schema_uri][google.cloud.aiplatform.v1.Annotation.payload_schema_uri] and all of their [labels][google.cloud.aiplatform.v1.Annotation.labels] are the same. These labels will be overridden by Annotation labels specified inside index file referenced by [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri], e.g. jsonl file.
map<string, string> annotation_labels = 3;- Specified by:
getAnnotationLabelsCountin interfaceImportDataConfigOrBuilder
-
containsAnnotationLabels
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][google.cloud.aiplatform.v1.Annotation.payload], [payload_schema_uri][google.cloud.aiplatform.v1.Annotation.payload_schema_uri] and all of their [labels][google.cloud.aiplatform.v1.Annotation.labels] are the same. These labels will be overridden by Annotation labels specified inside index file referenced by [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri], e.g. jsonl file.
map<string, string> annotation_labels = 3;- Specified by:
containsAnnotationLabelsin interfaceImportDataConfigOrBuilder
-
getAnnotationLabels
Deprecated.UsegetAnnotationLabelsMap()instead.- Specified by:
getAnnotationLabelsin interfaceImportDataConfigOrBuilder
-
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][google.cloud.aiplatform.v1.Annotation.payload], [payload_schema_uri][google.cloud.aiplatform.v1.Annotation.payload_schema_uri] and all of their [labels][google.cloud.aiplatform.v1.Annotation.labels] are the same. These labels will be overridden by Annotation labels specified inside index file referenced by [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri], e.g. jsonl file.
map<string, string> annotation_labels = 3;- Specified by:
getAnnotationLabelsMapin interfaceImportDataConfigOrBuilder
-
getAnnotationLabelsOrDefault
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][google.cloud.aiplatform.v1.Annotation.payload], [payload_schema_uri][google.cloud.aiplatform.v1.Annotation.payload_schema_uri] and all of their [labels][google.cloud.aiplatform.v1.Annotation.labels] are the same. These labels will be overridden by Annotation labels specified inside index file referenced by [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri], e.g. jsonl file.
map<string, string> annotation_labels = 3;- Specified by:
getAnnotationLabelsOrDefaultin interfaceImportDataConfigOrBuilder
-
getAnnotationLabelsOrThrow
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][google.cloud.aiplatform.v1.Annotation.payload], [payload_schema_uri][google.cloud.aiplatform.v1.Annotation.payload_schema_uri] and all of their [labels][google.cloud.aiplatform.v1.Annotation.labels] are the same. These labels will be overridden by Annotation labels specified inside index file referenced by [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri], e.g. jsonl file.
map<string, string> annotation_labels = 3;- Specified by:
getAnnotationLabelsOrThrowin interfaceImportDataConfigOrBuilder
-
clearAnnotationLabels
-
removeAnnotationLabels
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][google.cloud.aiplatform.v1.Annotation.payload], [payload_schema_uri][google.cloud.aiplatform.v1.Annotation.payload_schema_uri] and all of their [labels][google.cloud.aiplatform.v1.Annotation.labels] are the same. These labels will be overridden by Annotation labels specified inside index file referenced by [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri], e.g. jsonl file.
map<string, string> annotation_labels = 3; -
getMutableAnnotationLabels
Deprecated.Use alternate mutation accessors instead. -
putAnnotationLabels
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][google.cloud.aiplatform.v1.Annotation.payload], [payload_schema_uri][google.cloud.aiplatform.v1.Annotation.payload_schema_uri] and all of their [labels][google.cloud.aiplatform.v1.Annotation.labels] are the same. These labels will be overridden by Annotation labels specified inside index file referenced by [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri], e.g. jsonl file.
map<string, string> annotation_labels = 3; -
putAllAnnotationLabels
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][google.cloud.aiplatform.v1.Annotation.payload], [payload_schema_uri][google.cloud.aiplatform.v1.Annotation.payload_schema_uri] and all of their [labels][google.cloud.aiplatform.v1.Annotation.labels] are the same. These labels will be overridden by Annotation labels specified inside index file referenced by [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri], e.g. jsonl file.
map<string, string> annotation_labels = 3; -
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](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
string import_schema_uri = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getImportSchemaUriin interfaceImportDataConfigOrBuilder- Returns:
- The importSchemaUri.
-
getImportSchemaUriBytes
public com.google.protobuf.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](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
string import_schema_uri = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getImportSchemaUriBytesin interfaceImportDataConfigOrBuilder- Returns:
- The bytes for importSchemaUri.
-
setImportSchemaUri
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](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
string import_schema_uri = 4 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The importSchemaUri to set.- Returns:
- This builder for chaining.
-
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](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
string import_schema_uri = 4 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setImportSchemaUriBytes
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](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
string import_schema_uri = 4 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for importSchemaUri to set.- Returns:
- This builder for chaining.
-