Service Client: Google::Datastore::Admin::V1beta1::DatastoreAdmin::DatastoreAdminClient
Client stub representing the remote DatastoreAdmin gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to datastore.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Datastore::Admin::V1beta1::DatastoreAdmin - Compiled Protocol Buffers messages for google/datastore/admin/v1beta1/datastore_admin.proto
SYNOPSIS
use Google::Datastore::Admin::V1beta1::DatastoreAdmin;
my $msg = Google::Datastore::Admin::V1beta1::DatastoreAdmin::CommonMetadata->new({
start_time => $start_time,
end_time => $end_time,
operation_type => $operation_type,
labels => $labels,
});
# Read or update a field
my $val = $msg->start_time();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Datastore::Admin::V1beta1::DatastoreAdmin::CommonMetadata->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/datastore/admin/v1beta1/datastore_admin.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Datastore::Admin::V1beta1::DatastoreAdmin::CommonMetadata
Metadata common to all Datastore Admin operations.
Inherits from Protobuf::Message.
Accessors
$msg->start_time()/$msg->start_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The time that work began on the operation.
$msg->end_time()/$msg->end_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The time the operation ended, either successfully or otherwise.
$msg->operation_type()/$msg->operation_type($value)Type:
Enum(Google::Datastore::Admin::V1beta1::OperationType)The type of the operation. Can be used as a filter in ListOperationsRequest.
$msg->labels()/$msg->labels($value)Type:
Message(Google::Datastore::Admin::V1beta1::DatastoreAdmin::CommonMetadata::LabelsEntry)The client-assigned labels which were provided when the operation was created. May also include additional labels.
$msg->state()/$msg->state($value)Type:
Enum(Google::Datastore::Admin::V1beta1::CommonMetadata::State)The current state of the Operation.
Enum: CommonMetadata::State
STATE_UNSPECIFIED=>0INITIALIZING=>1PROCESSING=>2CANCELLING=>3FINALIZING=>4SUCCESSFUL=>5FAILED=>6CANCELLED=>7
Google::Datastore::Admin::V1beta1::DatastoreAdmin::Progress
Measures the progress of a particular metric.
Inherits from Protobuf::Message.
Accessors
$msg->work_completed()/$msg->work_completed($value)Type:
Int64The amount of work that has been completed. Note that this may be greater than work_estimated.
$msg->work_estimated()/$msg->work_estimated($value)Type:
Int64An estimate of how much work needs to be performed. May be zero if the work estimate is unavailable.
Google::Datastore::Admin::V1beta1::DatastoreAdmin::ExportEntitiesRequest
The request for [google.datastore.admin.v1beta1.DatastoreAdmin.ExportEntities][google.datastore.admin.v1beta1.DatastoreAdmin.ExportEntities].
Inherits from Protobuf::Message.
Accessors
$msg->project_id()/$msg->project_id($value)Type:
StringProject ID against which to make the request.
$msg->labels()/$msg->labels($value)Type:
Message(Google::Datastore::Admin::V1beta1::DatastoreAdmin::ExportEntitiesRequest::LabelsEntry)Client-assigned labels.
$msg->entity_filter()/$msg->entity_filter($value)Type:
Message(Google::Datastore::Admin::V1beta1::DatastoreAdmin::EntityFilter)Description of what data from the project is included in the export.
$msg->output_url_prefix()/$msg->output_url_prefix($value)Type:
StringLocation for the export metadata and data files.
The full resource URL of the external storage location. Currently, only Google Cloud Storage is supported. So output_url_prefix should be of the form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the name of the Cloud Storage bucket and `NAMESPACE_PATH` is an optional Cloud Storage namespace path (this is not a Cloud Datastore namespace). For more information about Cloud Storage namespace paths, see [Object name considerations](https://cloud.google.com/storage/docs/naming#object-considerations).
The resulting files will be nested deeper than the specified URL prefix. The final output URL will be provided in the [google.datastore.admin.v1beta1.ExportEntitiesResponse.output_url][google.datastore.admin.v1beta1.ExportEntitiesResponse.output_url] field. That value should be used for subsequent ImportEntities operations.
By nesting the data files deeper, the same Cloud Storage bucket can be used in multiple ExportEntities operations without conflict.
Google::Datastore::Admin::V1beta1::DatastoreAdmin::ImportEntitiesRequest
The request for [google.datastore.admin.v1beta1.DatastoreAdmin.ImportEntities][google.datastore.admin.v1beta1.DatastoreAdmin.ImportEntities].
Inherits from Protobuf::Message.
Accessors
$msg->project_id()/$msg->project_id($value)Type:
StringProject ID against which to make the request.
$msg->labels()/$msg->labels($value)Type:
Message(Google::Datastore::Admin::V1beta1::DatastoreAdmin::ImportEntitiesRequest::LabelsEntry)Client-assigned labels.
$msg->input_url()/$msg->input_url($value)Type:
StringThe 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.v1beta1.ExportEntitiesResponse.output_url][google.datastore.admin.v1beta1.ExportEntitiesResponse.output_url].
$msg->entity_filter()/$msg->entity_filter($value)Type:
Message(Google::Datastore::Admin::V1beta1::DatastoreAdmin::EntityFilter)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::V1beta1::DatastoreAdmin::ExportEntitiesResponse
The response for [google.datastore.admin.v1beta1.DatastoreAdmin.ExportEntities][google.datastore.admin.v1beta1.DatastoreAdmin.ExportEntities].
Inherits from Protobuf::Message.
Accessors
$msg->output_url()/$msg->output_url($value)Type:
StringLocation of the output metadata file. This can be used to begin an import into Cloud Datastore (this project or another project). See [google.datastore.admin.v1beta1.ImportEntitiesRequest.input_url][google.datastore.admin.v1beta1.ImportEntitiesRequest.input_url]. Only present if the operation completed successfully.
Google::Datastore::Admin::V1beta1::DatastoreAdmin::ExportEntitiesMetadata
Metadata for ExportEntities operations.
Inherits from Protobuf::Message.
Accessors
$msg->common()/$msg->common($value)Type:
Message(Google::Datastore::Admin::V1beta1::DatastoreAdmin::CommonMetadata)Metadata common to all Datastore Admin operations.
$msg->progress_entities()/$msg->progress_entities($value)Type:
Message(Google::Datastore::Admin::V1beta1::DatastoreAdmin::Progress)An estimate of the number of entities processed.
$msg->progress_bytes()/$msg->progress_bytes($value)Type:
Message(Google::Datastore::Admin::V1beta1::DatastoreAdmin::Progress)An estimate of the number of bytes processed.
$msg->entity_filter()/$msg->entity_filter($value)Type:
Message(Google::Datastore::Admin::V1beta1::DatastoreAdmin::EntityFilter)Description of which entities are being exported.
$msg->output_url_prefix()/$msg->output_url_prefix($value)Type:
StringLocation for the export metadata and data files. This will be the same value as the [google.datastore.admin.v1beta1.ExportEntitiesRequest.output_url_prefix][google.datastore.admin.v1beta1.ExportEntitiesRequest.output_url_prefix] field. The final output location is provided in [google.datastore.admin.v1beta1.ExportEntitiesResponse.output_url][google.datastore.admin.v1beta1.ExportEntitiesResponse.output_url].
Google::Datastore::Admin::V1beta1::DatastoreAdmin::ImportEntitiesMetadata
Metadata for ImportEntities operations.
Inherits from Protobuf::Message.
Accessors
$msg->common()/$msg->common($value)Type:
Message(Google::Datastore::Admin::V1beta1::DatastoreAdmin::CommonMetadata)Metadata common to all Datastore Admin operations.
$msg->progress_entities()/$msg->progress_entities($value)Type:
Message(Google::Datastore::Admin::V1beta1::DatastoreAdmin::Progress)An estimate of the number of entities processed.
$msg->progress_bytes()/$msg->progress_bytes($value)Type:
Message(Google::Datastore::Admin::V1beta1::DatastoreAdmin::Progress)An estimate of the number of bytes processed.
$msg->entity_filter()/$msg->entity_filter($value)Type:
Message(Google::Datastore::Admin::V1beta1::DatastoreAdmin::EntityFilter)Description of which entities are being imported.
$msg->input_url()/$msg->input_url($value)Type:
StringThe location of the import metadata file. This will be the same value as the [google.datastore.admin.v1beta1.ExportEntitiesResponse.output_url][google.datastore.admin.v1beta1.ExportEntitiesResponse.output_url] field.
Google::Datastore::Admin::V1beta1::DatastoreAdmin::EntityFilter
Identifies a subset of entities in a project. This is specified as combinations of kinds and namespaces (either or both of which may be all, as described in the following examples). Example usage:
Entire project: kinds=[], namespace_ids=[]
Kinds Foo and Bar in all namespaces: kinds=['Foo', 'Bar'], namespace_ids=[]
Kinds Foo and Bar only in the default namespace: kinds=['Foo', 'Bar'], namespace_ids=['']
Kinds Foo and Bar in both the default and Baz namespaces: kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz']
The entire Baz namespace: kinds=[], namespace_ids=['Baz']
Inherits from Protobuf::Message.
Accessors
$msg->kinds()/$msg->kinds($value)Type:
StringIf empty, then this represents all kinds.
$msg->namespace_ids()/$msg->namespace_ids($value)Type:
StringAn empty list represents all namespaces. This is the preferred usage for projects that don't use namespaces.
An empty string element represents the default namespace. This should be used if the project has data in non-default namespaces, but doesn't want to include them. Each namespace in this list must be unique.
SEE ALSO
Protobuf, Protobuf::Message, Google::Datastore::Admin::V1beta1::DatastoreAdmin::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.