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

Enum: CommonMetadata::State

  • STATE_UNSPECIFIED => 0

  • INITIALIZING => 1

  • PROCESSING => 2

  • CANCELLING => 3

  • FINALIZING => 4

  • SUCCESSFUL => 5

  • FAILED => 6

  • CANCELLED => 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: Int64

    The amount of work that has been completed. Note that this may be greater than work_estimated.

  • $msg->work_estimated() / $msg->work_estimated($value)

    Type: Int64

    An 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: String

    Project 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: String

    Location 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: String

    Project 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: String

    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.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: String

    Location 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

Google::Datastore::Admin::V1beta1::DatastoreAdmin::ImportEntitiesMetadata

Metadata for ImportEntities operations.

Inherits from Protobuf::Message.

Accessors

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: String

    If empty, then this represents all kinds.

  • $msg->namespace_ids() / $msg->namespace_ids($value)

    Type: String

    An 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.