public static final class ImportEntitiesRequest.Builder extends GeneratedMessageV3.Builder<ImportEntitiesRequest.Builder> implements ImportEntitiesRequestOrBuilder
The request for
google.datastore.admin.v1.DatastoreAdmin.ImportEntities.
Protobuf type google.datastore.admin.v1.ImportEntitiesRequest
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
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ImportEntitiesRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public ImportEntitiesRequest build()
buildPartial()
public ImportEntitiesRequest buildPartial()
clear()
public ImportEntitiesRequest.Builder clear()
Overrides
clearEntityFilter()
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;
clearField(Descriptors.FieldDescriptor field)
public ImportEntitiesRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
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.
For more information, see
google.datastore.admin.v1.ExportEntitiesResponse.output_url.
string input_url = 3 [(.google.api.field_behavior) = REQUIRED];
clearLabels()
public ImportEntitiesRequest.Builder clearLabels()
clearOneof(Descriptors.OneofDescriptor oneof)
public ImportEntitiesRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearProjectId()
public ImportEntitiesRequest.Builder clearProjectId()
Required. Project ID against which to make the request.
string project_id = 1 [(.google.api.field_behavior) = REQUIRED];
clone()
public ImportEntitiesRequest.Builder clone()
Overrides
containsLabels(String key)
public boolean containsLabels(String key)
Client-assigned labels.
map<string, string> labels = 2;
Parameter |
---|
Name | Description |
key | String
|
getDefaultInstanceForType()
public ImportEntitiesRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getEntityFilter()
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;
getEntityFilterBuilder()
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;
getEntityFilterOrBuilder()
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;
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.
For more information, see
google.datastore.admin.v1.ExportEntitiesResponse.output_url.
string input_url = 3 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
String | The inputUrl.
|
public 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.
For more information, see
google.datastore.admin.v1.ExportEntitiesResponse.output_url.
string input_url = 3 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
ByteString | The bytes for inputUrl.
|
getLabels()
public Map<String,String> getLabels()
getLabelsCount()
public int getLabelsCount()
Client-assigned labels.
map<string, string> labels = 2;
Returns |
---|
Type | Description |
int | |
getLabelsMap()
public Map<String,String> getLabelsMap()
Client-assigned labels.
map<string, string> labels = 2;
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)
Client-assigned labels.
map<string, string> labels = 2;
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)
Client-assigned labels.
map<string, string> labels = 2;
Parameter |
---|
Name | Description |
key | String
|
getMutableLabels()
public Map<String,String> getMutableLabels()
Use alternate mutation accessors instead.
getProjectId()
public String getProjectId()
Required. Project ID against which to make the request.
string project_id = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
String | The projectId.
|
getProjectIdBytes()
public ByteString getProjectIdBytes()
Required. Project ID against which to make the request.
string project_id = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
ByteString | The bytes for projectId.
|
hasEntityFilter()
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;
Returns |
---|
Type | Description |
boolean | Whether the entityFilter field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeEntityFilter(EntityFilter value)
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;
mergeFrom(ImportEntitiesRequest other)
public ImportEntitiesRequest.Builder mergeFrom(ImportEntitiesRequest other)
public ImportEntitiesRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ImportEntitiesRequest.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ImportEntitiesRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
putAllLabels(Map<String,String> values)
public ImportEntitiesRequest.Builder putAllLabels(Map<String,String> values)
Client-assigned labels.
map<string, string> labels = 2;
putLabels(String key, String value)
public ImportEntitiesRequest.Builder putLabels(String key, String value)
Client-assigned labels.
map<string, string> labels = 2;
removeLabels(String key)
public ImportEntitiesRequest.Builder removeLabels(String key)
Client-assigned labels.
map<string, string> labels = 2;
Parameter |
---|
Name | Description |
key | String
|
setEntityFilter(EntityFilter value)
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;
setEntityFilter(EntityFilter.Builder builderForValue)
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;
setField(Descriptors.FieldDescriptor field, Object value)
public ImportEntitiesRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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.
For more information, see
google.datastore.admin.v1.ExportEntitiesResponse.output_url.
string input_url = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
value | String
The inputUrl to set.
|
public ImportEntitiesRequest.Builder setInputUrlBytes(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.
For more information, see
google.datastore.admin.v1.ExportEntitiesResponse.output_url.
string input_url = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
value | ByteString
The bytes for inputUrl to set.
|
setProjectId(String value)
public ImportEntitiesRequest.Builder setProjectId(String value)
Required. Project ID against which to make the request.
string project_id = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
value | String
The projectId to set.
|
setProjectIdBytes(ByteString value)
public ImportEntitiesRequest.Builder setProjectIdBytes(ByteString value)
Required. Project ID against which to make the request.
string project_id = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
value | ByteString
The bytes for projectId to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ImportEntitiesRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ImportEntitiesRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides