public static final class ImportEntitiesRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ImportEntitiesRequest.Builder> implements ImportEntitiesRequestOrBuilder
The request for [google.datastore.admin.v1.DatastoreAdmin.ImportEntities][google.datastore.admin.v1.DatastoreAdmin.ImportEntities].Protobuf type
google.datastore.admin.v1.ImportEntitiesRequest
Modifier and Type | Method and Description |
---|---|
ImportEntitiesRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ImportEntitiesRequest |
build() |
ImportEntitiesRequest |
buildPartial() |
ImportEntitiesRequest.Builder |
clear() |
ImportEntitiesRequest.Builder |
clearEntityFilter()
Optionally specify which kinds/namespaces are to be imported.
|
ImportEntitiesRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ImportEntitiesRequest.Builder |
clearInputUrl()
Required.
|
ImportEntitiesRequest.Builder |
clearLabels() |
ImportEntitiesRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ImportEntitiesRequest.Builder |
clearProjectId()
Required.
|
ImportEntitiesRequest.Builder |
clone() |
boolean |
containsLabels(String key)
Client-assigned labels.
|
ImportEntitiesRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
EntityFilter |
getEntityFilter()
Optionally specify which kinds/namespaces are to be imported.
|
EntityFilter.Builder |
getEntityFilterBuilder()
Optionally specify which kinds/namespaces are to be imported.
|
EntityFilterOrBuilder |
getEntityFilterOrBuilder()
Optionally specify which kinds/namespaces are to be imported.
|
String |
getInputUrl()
Required.
|
com.google.protobuf.ByteString |
getInputUrlBytes()
Required.
|
Map<String,String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
Client-assigned labels.
|
Map<String,String> |
getLabelsMap()
Client-assigned labels.
|
String |
getLabelsOrDefault(String key,
String defaultValue)
Client-assigned labels.
|
String |
getLabelsOrThrow(String key)
Client-assigned labels.
|
Map<String,String> |
getMutableLabels()
Deprecated.
|
String |
getProjectId()
Required.
|
com.google.protobuf.ByteString |
getProjectIdBytes()
Required.
|
boolean |
hasEntityFilter()
Optionally specify which kinds/namespaces are to be imported.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
ImportEntitiesRequest.Builder |
mergeEntityFilter(EntityFilter value)
Optionally specify which kinds/namespaces are to be imported.
|
ImportEntitiesRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ImportEntitiesRequest.Builder |
mergeFrom(ImportEntitiesRequest other) |
ImportEntitiesRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
ImportEntitiesRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ImportEntitiesRequest.Builder |
putAllLabels(Map<String,String> values)
Client-assigned labels.
|
ImportEntitiesRequest.Builder |
putLabels(String key,
String value)
Client-assigned labels.
|
ImportEntitiesRequest.Builder |
removeLabels(String key)
Client-assigned labels.
|
ImportEntitiesRequest.Builder |
setEntityFilter(EntityFilter.Builder builderForValue)
Optionally specify which kinds/namespaces are to be imported.
|
ImportEntitiesRequest.Builder |
setEntityFilter(EntityFilter value)
Optionally specify which kinds/namespaces are to be imported.
|
ImportEntitiesRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ImportEntitiesRequest.Builder |
setInputUrl(String value)
Required.
|
ImportEntitiesRequest.Builder |
setInputUrlBytes(com.google.protobuf.ByteString value)
Required.
|
ImportEntitiesRequest.Builder |
setProjectId(String value)
Required.
|
ImportEntitiesRequest.Builder |
setProjectIdBytes(com.google.protobuf.ByteString value)
Required.
|
ImportEntitiesRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ImportEntitiesRequest.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField
in class com.google.protobuf.GeneratedMessageV3.Builder<ImportEntitiesRequest.Builder>
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField
in class com.google.protobuf.GeneratedMessageV3.Builder<ImportEntitiesRequest.Builder>
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<ImportEntitiesRequest.Builder>
public ImportEntitiesRequest.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<ImportEntitiesRequest.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<ImportEntitiesRequest.Builder>
public ImportEntitiesRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public ImportEntitiesRequest build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public ImportEntitiesRequest buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public ImportEntitiesRequest.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<ImportEntitiesRequest.Builder>
public ImportEntitiesRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<ImportEntitiesRequest.Builder>
public ImportEntitiesRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<ImportEntitiesRequest.Builder>
public ImportEntitiesRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<ImportEntitiesRequest.Builder>
public ImportEntitiesRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<ImportEntitiesRequest.Builder>
public ImportEntitiesRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<ImportEntitiesRequest.Builder>
public ImportEntitiesRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<ImportEntitiesRequest.Builder>
public ImportEntitiesRequest.Builder mergeFrom(ImportEntitiesRequest other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<ImportEntitiesRequest.Builder>
public ImportEntitiesRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<ImportEntitiesRequest.Builder>
IOException
public String getProjectId()
Required. Project ID against which to make the request.
string project_id = 1 [(.google.api.field_behavior) = REQUIRED];
getProjectId
in interface ImportEntitiesRequestOrBuilder
public com.google.protobuf.ByteString getProjectIdBytes()
Required. Project ID against which to make the request.
string project_id = 1 [(.google.api.field_behavior) = REQUIRED];
getProjectIdBytes
in interface ImportEntitiesRequestOrBuilder
public ImportEntitiesRequest.Builder setProjectId(String value)
Required. Project ID against which to make the request.
string project_id = 1 [(.google.api.field_behavior) = REQUIRED];
value
- The projectId to set.public ImportEntitiesRequest.Builder clearProjectId()
Required. Project ID against which to make the request.
string project_id = 1 [(.google.api.field_behavior) = REQUIRED];
public ImportEntitiesRequest.Builder setProjectIdBytes(com.google.protobuf.ByteString value)
Required. Project ID against which to make the request.
string project_id = 1 [(.google.api.field_behavior) = REQUIRED];
value
- The bytes for projectId to set.public int getLabelsCount()
ImportEntitiesRequestOrBuilder
Client-assigned labels.
map<string, string> labels = 2;
getLabelsCount
in interface ImportEntitiesRequestOrBuilder
public boolean containsLabels(String key)
Client-assigned labels.
map<string, string> labels = 2;
containsLabels
in interface ImportEntitiesRequestOrBuilder
@Deprecated public Map<String,String> getLabels()
getLabelsMap()
instead.getLabels
in interface ImportEntitiesRequestOrBuilder
public Map<String,String> getLabelsMap()
Client-assigned labels.
map<string, string> labels = 2;
getLabelsMap
in interface ImportEntitiesRequestOrBuilder
public String getLabelsOrDefault(String key, String defaultValue)
Client-assigned labels.
map<string, string> labels = 2;
getLabelsOrDefault
in interface ImportEntitiesRequestOrBuilder
public String getLabelsOrThrow(String key)
Client-assigned labels.
map<string, string> labels = 2;
getLabelsOrThrow
in interface ImportEntitiesRequestOrBuilder
public ImportEntitiesRequest.Builder clearLabels()
public ImportEntitiesRequest.Builder removeLabels(String key)
Client-assigned labels.
map<string, string> labels = 2;
@Deprecated public Map<String,String> getMutableLabels()
public ImportEntitiesRequest.Builder putLabels(String key, String value)
Client-assigned labels.
map<string, string> labels = 2;
public ImportEntitiesRequest.Builder putAllLabels(Map<String,String> values)
Client-assigned labels.
map<string, string> labels = 2;
public String getInputUrl()
Required. The full resource URL of the external storage location. Currently, only Google Cloud Storage is supported. So input_url should be of the form: `gs://BUCKET_NAME[/NAMESPACE_PATH]/OVERALL_EXPORT_METADATA_FILE`, where `BUCKET_NAME` is the name of the Cloud Storage bucket, `NAMESPACE_PATH` is an optional Cloud Storage namespace path (this is not a Cloud Datastore namespace), and `OVERALL_EXPORT_METADATA_FILE` is the metadata file written by the ExportEntities operation. For more information about Cloud Storage namespace paths, see [Object name considerations](https://cloud.google.com/storage/docs/naming#object-considerations). For more information, see [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url].
string input_url = 3 [(.google.api.field_behavior) = REQUIRED];
getInputUrl
in interface ImportEntitiesRequestOrBuilder
public com.google.protobuf.ByteString getInputUrlBytes()
Required. The full resource URL of the external storage location. Currently, only Google Cloud Storage is supported. So input_url should be of the form: `gs://BUCKET_NAME[/NAMESPACE_PATH]/OVERALL_EXPORT_METADATA_FILE`, where `BUCKET_NAME` is the name of the Cloud Storage bucket, `NAMESPACE_PATH` is an optional Cloud Storage namespace path (this is not a Cloud Datastore namespace), and `OVERALL_EXPORT_METADATA_FILE` is the metadata file written by the ExportEntities operation. For more information about Cloud Storage namespace paths, see [Object name considerations](https://cloud.google.com/storage/docs/naming#object-considerations). For more information, see [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url].
string input_url = 3 [(.google.api.field_behavior) = REQUIRED];
getInputUrlBytes
in interface ImportEntitiesRequestOrBuilder
public ImportEntitiesRequest.Builder setInputUrl(String value)
Required. The full resource URL of the external storage location. Currently, only Google Cloud Storage is supported. So input_url should be of the form: `gs://BUCKET_NAME[/NAMESPACE_PATH]/OVERALL_EXPORT_METADATA_FILE`, where `BUCKET_NAME` is the name of the Cloud Storage bucket, `NAMESPACE_PATH` is an optional Cloud Storage namespace path (this is not a Cloud Datastore namespace), and `OVERALL_EXPORT_METADATA_FILE` is the metadata file written by the ExportEntities operation. For more information about Cloud Storage namespace paths, see [Object name considerations](https://cloud.google.com/storage/docs/naming#object-considerations). For more information, see [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url].
string input_url = 3 [(.google.api.field_behavior) = REQUIRED];
value
- The inputUrl to set.public ImportEntitiesRequest.Builder clearInputUrl()
Required. The full resource URL of the external storage location. Currently, only Google Cloud Storage is supported. So input_url should be of the form: `gs://BUCKET_NAME[/NAMESPACE_PATH]/OVERALL_EXPORT_METADATA_FILE`, where `BUCKET_NAME` is the name of the Cloud Storage bucket, `NAMESPACE_PATH` is an optional Cloud Storage namespace path (this is not a Cloud Datastore namespace), and `OVERALL_EXPORT_METADATA_FILE` is the metadata file written by the ExportEntities operation. For more information about Cloud Storage namespace paths, see [Object name considerations](https://cloud.google.com/storage/docs/naming#object-considerations). For more information, see [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url].
string input_url = 3 [(.google.api.field_behavior) = REQUIRED];
public ImportEntitiesRequest.Builder setInputUrlBytes(com.google.protobuf.ByteString value)
Required. The full resource URL of the external storage location. Currently, only Google Cloud Storage is supported. So input_url should be of the form: `gs://BUCKET_NAME[/NAMESPACE_PATH]/OVERALL_EXPORT_METADATA_FILE`, where `BUCKET_NAME` is the name of the Cloud Storage bucket, `NAMESPACE_PATH` is an optional Cloud Storage namespace path (this is not a Cloud Datastore namespace), and `OVERALL_EXPORT_METADATA_FILE` is the metadata file written by the ExportEntities operation. For more information about Cloud Storage namespace paths, see [Object name considerations](https://cloud.google.com/storage/docs/naming#object-considerations). For more information, see [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url].
string input_url = 3 [(.google.api.field_behavior) = REQUIRED];
value
- The bytes for inputUrl to set.public boolean hasEntityFilter()
Optionally specify which kinds/namespaces are to be imported. If provided, the list must be a subset of the EntityFilter used in creating the export, otherwise a FAILED_PRECONDITION error will be returned. If no filter is specified then all entities from the export are imported.
.google.datastore.admin.v1.EntityFilter entity_filter = 4;
hasEntityFilter
in interface ImportEntitiesRequestOrBuilder
public EntityFilter getEntityFilter()
Optionally specify which kinds/namespaces are to be imported. If provided, the list must be a subset of the EntityFilter used in creating the export, otherwise a FAILED_PRECONDITION error will be returned. If no filter is specified then all entities from the export are imported.
.google.datastore.admin.v1.EntityFilter entity_filter = 4;
getEntityFilter
in interface ImportEntitiesRequestOrBuilder
public ImportEntitiesRequest.Builder setEntityFilter(EntityFilter value)
Optionally specify which kinds/namespaces are to be imported. If provided, the list must be a subset of the EntityFilter used in creating the export, otherwise a FAILED_PRECONDITION error will be returned. If no filter is specified then all entities from the export are imported.
.google.datastore.admin.v1.EntityFilter entity_filter = 4;
public ImportEntitiesRequest.Builder setEntityFilter(EntityFilter.Builder builderForValue)
Optionally specify which kinds/namespaces are to be imported. If provided, the list must be a subset of the EntityFilter used in creating the export, otherwise a FAILED_PRECONDITION error will be returned. If no filter is specified then all entities from the export are imported.
.google.datastore.admin.v1.EntityFilter entity_filter = 4;
public ImportEntitiesRequest.Builder mergeEntityFilter(EntityFilter value)
Optionally specify which kinds/namespaces are to be imported. If provided, the list must be a subset of the EntityFilter used in creating the export, otherwise a FAILED_PRECONDITION error will be returned. If no filter is specified then all entities from the export are imported.
.google.datastore.admin.v1.EntityFilter entity_filter = 4;
public ImportEntitiesRequest.Builder clearEntityFilter()
Optionally specify which kinds/namespaces are to be imported. If provided, the list must be a subset of the EntityFilter used in creating the export, otherwise a FAILED_PRECONDITION error will be returned. If no filter is specified then all entities from the export are imported.
.google.datastore.admin.v1.EntityFilter entity_filter = 4;
public EntityFilter.Builder getEntityFilterBuilder()
Optionally specify which kinds/namespaces are to be imported. If provided, the list must be a subset of the EntityFilter used in creating the export, otherwise a FAILED_PRECONDITION error will be returned. If no filter is specified then all entities from the export are imported.
.google.datastore.admin.v1.EntityFilter entity_filter = 4;
public EntityFilterOrBuilder getEntityFilterOrBuilder()
Optionally specify which kinds/namespaces are to be imported. If provided, the list must be a subset of the EntityFilter used in creating the export, otherwise a FAILED_PRECONDITION error will be returned. If no filter is specified then all entities from the export are imported.
.google.datastore.admin.v1.EntityFilter entity_filter = 4;
getEntityFilterOrBuilder
in interface ImportEntitiesRequestOrBuilder
public final ImportEntitiesRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<ImportEntitiesRequest.Builder>
public final ImportEntitiesRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<ImportEntitiesRequest.Builder>
Copyright © 2023 Google LLC. All rights reserved.