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()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ImportEntitiesRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ImportEntitiesRequest build()
Returns
buildPartial()
public ImportEntitiesRequest buildPartial()
Returns
clear()
public ImportEntitiesRequest.Builder clear()
Returns
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;
Returns
clearField(Descriptors.FieldDescriptor field)
public ImportEntitiesRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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];
Returns
clearLabels()
public ImportEntitiesRequest.Builder clearLabels()
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public ImportEntitiesRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearProjectId()
public ImportEntitiesRequest.Builder clearProjectId()
Required. Project ID against which to make the request.
string project_id = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
clone()
public ImportEntitiesRequest.Builder clone()
Returns
Overrides
containsLabels(String key)
public boolean containsLabels(String key)
Client-assigned labels.
map<string, string> labels = 2;
Parameter
Returns
getDefaultInstanceForType()
public ImportEntitiesRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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;
Returns
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;
Returns
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;
Returns
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
getLabels()
public Map<String,String> getLabels()
Returns
getLabelsCount()
public int getLabelsCount()
Client-assigned labels.
map<string, string> labels = 2;
Returns
getLabelsMap()
public Map<String,String> getLabelsMap()
Client-assigned labels.
map<string, string> labels = 2;
Returns
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)
Client-assigned labels.
map<string, string> labels = 2;
Parameters
Returns
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)
Client-assigned labels.
map<string, string> labels = 2;
Parameter
Returns
getMutableLabels()
public Map<String,String> getMutableLabels()
Use alternate mutation accessors instead.
Returns
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
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()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
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;
Parameter
Returns
mergeFrom(ImportEntitiesRequest other)
public ImportEntitiesRequest.Builder mergeFrom(ImportEntitiesRequest other)
Parameter
Returns
public ImportEntitiesRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ImportEntitiesRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ImportEntitiesRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
putAllLabels(Map<String,String> values)
public ImportEntitiesRequest.Builder putAllLabels(Map<String,String> values)
Client-assigned labels.
map<string, string> labels = 2;
Parameter
Returns
putLabels(String key, String value)
public ImportEntitiesRequest.Builder putLabels(String key, String value)
Client-assigned labels.
map<string, string> labels = 2;
Parameters
Returns
removeLabels(String key)
public ImportEntitiesRequest.Builder removeLabels(String key)
Client-assigned labels.
map<string, string> labels = 2;
Parameter
Returns
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;
Parameter
Returns
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;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ImportEntitiesRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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.
|
Returns
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.
|
Returns
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.
|
Returns
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.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ImportEntitiesRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ImportEntitiesRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides