Service Client: Google::Datastore::V1beta3::Datastore::DatastoreClient

Client stub representing the remote Datastore 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::V1beta3::Datastore - Compiled Protocol Buffers messages for google/datastore/v1beta3/datastore.proto

SYNOPSIS

use Google::Datastore::V1beta3::Datastore;

my $msg = Google::Datastore::V1beta3::Datastore::LookupRequest->new({
    project_id => $project_id,
    read_options => $read_options,
    keys => $keys,
});

# Read or update a field
my $val = $msg->project_id();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Datastore::V1beta3::Datastore::LookupRequest->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/datastore/v1beta3/datastore.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::V1beta3::Datastore::LookupRequest

The request for [Datastore.Lookup][google.datastore.v1beta3.Datastore.Lookup].

Inherits from Protobuf::Message.

Accessors

Google::Datastore::V1beta3::Datastore::LookupResponse

The response for [Datastore.Lookup][google.datastore.v1beta3.Datastore.Lookup].

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Datastore::V1beta3::Query::EntityResult)

    Entities found as `ResultType.FULL` entities. The order of results in this field is undefined and has no relation to the order of the keys in the input.

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

    Type: Message (Google::Datastore::V1beta3::Query::EntityResult)

    Entities not found as `ResultType.KEY_ONLY` entities. The order of results in this field is undefined and has no relation to the order of the keys in the input.

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

    Type: Message (Google::Datastore::V1beta3::Entity::Key)

    A list of keys that were not looked up due to resource constraints. The order of results in this field is undefined and has no relation to the order of the keys in the input.

Google::Datastore::V1beta3::Datastore::RunQueryRequest

The request for [Datastore.RunQuery][google.datastore.v1beta3.Datastore.RunQuery].

Inherits from Protobuf::Message.

Accessors

Google::Datastore::V1beta3::Datastore::RunQueryResponse

The response for [Datastore.RunQuery][google.datastore.v1beta3.Datastore.RunQuery].

Inherits from Protobuf::Message.

Accessors

Google::Datastore::V1beta3::Datastore::BeginTransactionRequest

The request for [Datastore.BeginTransaction][google.datastore.v1beta3.Datastore.BeginTransaction].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The ID of the project against which to make the request.

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

    Type: Message (Google::Datastore::V1beta3::Datastore::TransactionOptions)

    Options for a new transaction.

Google::Datastore::V1beta3::Datastore::BeginTransactionResponse

The response for [Datastore.BeginTransaction][google.datastore.v1beta3.Datastore.BeginTransaction].

Inherits from Protobuf::Message.

Accessors

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

    Type: Bytes

    The transaction identifier (always present).

Google::Datastore::V1beta3::Datastore::RollbackRequest

The request for [Datastore.Rollback][google.datastore.v1beta3.Datastore.Rollback].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The ID of the project against which to make the request.

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

    Type: Bytes

    The transaction identifier, returned by a call to [Datastore.BeginTransaction][google.datastore.v1beta3.Datastore.BeginTransaction].

Google::Datastore::V1beta3::Datastore::RollbackResponse

The response for [Datastore.Rollback][google.datastore.v1beta3.Datastore.Rollback]. (an empty message).

Inherits from Protobuf::Message.

Google::Datastore::V1beta3::Datastore::CommitRequest

The request for [Datastore.Commit][google.datastore.v1beta3.Datastore.Commit].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The ID of the project against which to make the request.

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

    Type: Enum (Google::Datastore::V1beta3::CommitRequest::Mode)

    The type of commit to perform. Defaults to `TRANSACTIONAL`.

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

    Type: Bytes

    The identifier of the transaction associated with the commit. A transaction identifier is returned by a call to [Datastore.BeginTransaction][google.datastore.v1beta3.Datastore.BeginTransaction].

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

    Type: Message (Google::Datastore::V1beta3::Datastore::Mutation)

    The mutations to perform.

    When mode is `TRANSACTIONAL`, mutations affecting a single entity are applied in order. The following sequences of mutations affecting a single entity are not permitted in a single `Commit` request:

    - `insert` followed by `insert` - `update` followed by `insert` - `upsert` followed by `insert` - `delete` followed by `update`

    When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single entity.

Enum: CommitRequest::Mode

  • MODE_UNSPECIFIED => 0

  • TRANSACTIONAL => 1

  • NON_TRANSACTIONAL => 2

Google::Datastore::V1beta3::Datastore::CommitResponse

The response for [Datastore.Commit][google.datastore.v1beta3.Datastore.Commit].

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Datastore::V1beta3::Datastore::MutationResult)

    The result of performing the mutations. The i-th mutation result corresponds to the i-th mutation in the request.

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

    Type: Int32

    The number of index entries updated during the commit, or zero if none were updated.

Google::Datastore::V1beta3::Datastore::AllocateIdsRequest

The request for [Datastore.AllocateIds][google.datastore.v1beta3.Datastore.AllocateIds].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The ID of the project against which to make the request.

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

    Type: Message (Google::Datastore::V1beta3::Entity::Key)

    A list of keys with incomplete key paths for which to allocate IDs. No key may be reserved/read-only.

Google::Datastore::V1beta3::Datastore::AllocateIdsResponse

The response for [Datastore.AllocateIds][google.datastore.v1beta3.Datastore.AllocateIds].

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Datastore::V1beta3::Entity::Key)

    The keys specified in the request (in the same order), each with its key path completed with a newly allocated ID.

Google::Datastore::V1beta3::Datastore::ReserveIdsRequest

The request for [Datastore.ReserveIds][google.datastore.v1beta3.Datastore.ReserveIds].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The ID of the project against which to make the request.

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

    Type: String

    If not empty, the ID of the database against which to make the request.

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

    Type: Message (Google::Datastore::V1beta3::Entity::Key)

    A list of keys with complete key paths whose numeric IDs should not be auto-allocated.

Google::Datastore::V1beta3::Datastore::ReserveIdsResponse

The response for [Datastore.ReserveIds][google.datastore.v1beta3.Datastore.ReserveIds].

Inherits from Protobuf::Message.

Google::Datastore::V1beta3::Datastore::Mutation

A mutation to apply to an entity.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Datastore::V1beta3::Entity::Entity)

    The entity to insert. The entity must not already exist. The entity key's final path element may be incomplete.

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

    Type: Message (Google::Datastore::V1beta3::Entity::Entity)

    The entity to update. The entity must already exist. Must have a complete key path.

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

    Type: Message (Google::Datastore::V1beta3::Entity::Entity)

    The entity to upsert. The entity may or may not already exist. The entity key's final path element may be incomplete.

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

    Type: Message (Google::Datastore::V1beta3::Entity::Key)

    The key of the entity to delete. The entity may or may not already exist. Must have a complete key path and must not be reserved/read-only.

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

    Type: Int64

    The version of the entity that this mutation is being applied to. If this does not match the current version on the server, the mutation conflicts.

Google::Datastore::V1beta3::Datastore::MutationResult

The result of applying a mutation.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Datastore::V1beta3::Entity::Key)

    The automatically allocated key. Set only when the mutation allocated a key.

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

    Type: Int64

    The version of the entity on the server after processing the mutation. If the mutation doesn't change anything on the server, then the version will be the version of the current entity or, if no entity is present, a version that is strictly greater than the version of any previous entity and less than the version of any possible future entity.

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

    Type: Bool

    Whether a conflict was detected for this mutation. Always false when a conflict detection strategy field is not set in the mutation.

Google::Datastore::V1beta3::Datastore::ReadOptions

The options shared by read requests.

Inherits from Protobuf::Message.

Accessors

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

    Type: Enum (Google::Datastore::V1beta3::ReadOptions::ReadConsistency)

    The non-transactional read consistency to use. Cannot be set to `STRONG` for global queries.

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

    Type: Bytes

    The identifier of the transaction in which to read. A transaction identifier is returned by a call to [Datastore.BeginTransaction][google.datastore.v1beta3.Datastore.BeginTransaction].

Enum: ReadOptions::ReadConsistency

  • READ_CONSISTENCY_UNSPECIFIED => 0

  • STRONG => 1

  • EVENTUAL => 2

Google::Datastore::V1beta3::Datastore::TransactionOptions

Options for beginning a new transaction.

Transactions can be created explicitly with calls to [Datastore.BeginTransaction][google.datastore.v1beta3.Datastore.BeginTransaction] or implicitly by setting [ReadOptions.new_transaction][google.datastore.v1beta3.ReadOptions.new_transaction] in read requests.

Inherits from Protobuf::Message.

Accessors

SEE ALSO

Protobuf, Protobuf::Message, Google::Datastore::V1beta3::Datastore::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.