Service Client: Google::Datastore::V1::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::V1::Datastore - Compiled Protocol Buffers messages for google/datastore/v1/datastore.proto

SYNOPSIS

use Google::Datastore::V1::Datastore;

my $msg = Google::Datastore::V1::Datastore::LookupRequest->new({
    project_id => $project_id,
    database_id => $database_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::V1::Datastore::LookupRequest->parse($bytes);

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

DESCRIPTION

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

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

Inherits from Protobuf::Message.

Accessors

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

    Type: String

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

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

    Type: String

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

    '(default)' is not allowed; please use empty string '' to refer the default database.

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

    Type: Message (Google::Datastore::V1::Datastore::ReadOptions)

    The options for this lookup request.

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

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

    Required. Keys of entities to look up.

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

    Type: Message (Google::Datastore::V1::Datastore::PropertyMask)

    The properties to return. Defaults to returning all properties.

    If this field is set and an entity has a property not referenced in the mask, it will be absent from [LookupResponse.found.entity.properties][].

    The entity's key is always returned.

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

    Type: Message (Google::Datastore::V1::Datastore::RequestOptions)

    Optional. The options for this request.

Google::Datastore::V1::Datastore::LookupResponse

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

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Datastore::V1::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::V1::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::V1::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.

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

    Type: Bytes

    The identifier of the transaction that was started as part of this Lookup request.

    Set only when [ReadOptions.new_transaction][google.datastore.v1.ReadOptions.new_transaction] was set in [LookupRequest.read_options][google.datastore.v1.LookupRequest.read_options].

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    The time at which these entities were read or found missing.

Google::Datastore::V1::Datastore::RunQueryRequest

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

Inherits from Protobuf::Message.

Accessors

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

    Type: String

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

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

    Type: String

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

    '(default)' is not allowed; please use empty string '' to refer the default database.

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

    Type: Message (Google::Datastore::V1::Entity::PartitionId)

    Entities are partitioned into subsets, identified by a partition ID. Queries are scoped to a single partition. This partition ID is normalized with the standard default context partition ID.

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

    Type: Message (Google::Datastore::V1::Datastore::ReadOptions)

    The options for this query.

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

    Type: Message (Google::Datastore::V1::Query::Query)

    The query to run.

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

    Type: Message (Google::Datastore::V1::Query::GqlQuery)

    The GQL query to run. This query must be a non-aggregation query.

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

    Type: Message (Google::Datastore::V1::Datastore::PropertyMask)

    The properties to return. This field must not be set for a projection query.

    See [LookupRequest.property_mask][google.datastore.v1.LookupRequest.property_mask].

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

    Type: Message (Google::Datastore::V1::QueryProfile::ExplainOptions)

    Optional. Explain options for the query. If set, additional query statistics will be returned. If not, only query results will be returned.

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

    Type: Message (Google::Datastore::V1::Datastore::RequestOptions)

    Optional. The options for this request.

Google::Datastore::V1::Datastore::RunQueryResponse

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

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Datastore::V1::Query::QueryResultBatch)

    A batch of query results. This is always present unless running a query under explain-only mode: [RunQueryRequest.explain_options][google.datastore.v1.RunQueryRequest.explain_options] was provided and [ExplainOptions.analyze][google.datastore.v1.ExplainOptions.analyze] was set to false.

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

    Type: Message (Google::Datastore::V1::Query::Query)

    The parsed form of the `GqlQuery` from the request, if it was set.

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

    Type: Bytes

    The identifier of the transaction that was started as part of this RunQuery request.

    Set only when [ReadOptions.new_transaction][google.datastore.v1.ReadOptions.new_transaction] was set in [RunQueryRequest.read_options][google.datastore.v1.RunQueryRequest.read_options].

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

    Type: Message (Google::Datastore::V1::QueryProfile::ExplainMetrics)

    Query explain metrics. This is only present when the [RunQueryRequest.explain_options][google.datastore.v1.RunQueryRequest.explain_options] is provided, and it is sent only once with the last response in the stream.

Google::Datastore::V1::Datastore::RunAggregationQueryRequest

The request for [Datastore.RunAggregationQuery][google.datastore.v1.Datastore.RunAggregationQuery].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

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

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

    Type: String

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

    '(default)' is not allowed; please use empty string '' to refer the default database.

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

    Type: Message (Google::Datastore::V1::Entity::PartitionId)

    Entities are partitioned into subsets, identified by a partition ID. Queries are scoped to a single partition. This partition ID is normalized with the standard default context partition ID.

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

    Type: Message (Google::Datastore::V1::Datastore::ReadOptions)

    The options for this query.

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

    Type: Message (Google::Datastore::V1::Query::AggregationQuery)

    The query to run.

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

    Type: Message (Google::Datastore::V1::Query::GqlQuery)

    The GQL query to run. This query must be an aggregation query.

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

    Type: Message (Google::Datastore::V1::QueryProfile::ExplainOptions)

    Optional. Explain options for the query. If set, additional query statistics will be returned. If not, only query results will be returned.

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

    Type: Message (Google::Datastore::V1::Datastore::RequestOptions)

    Optional. The options for this request.

Google::Datastore::V1::Datastore::RunAggregationQueryResponse

The response for [Datastore.RunAggregationQuery][google.datastore.v1.Datastore.RunAggregationQuery].

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Datastore::V1::AggregationResult::AggregationResultBatch)

    A batch of aggregation results. Always present.

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

    Type: Message (Google::Datastore::V1::Query::AggregationQuery)

    The parsed form of the `GqlQuery` from the request, if it was set.

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

    Type: Bytes

    The identifier of the transaction that was started as part of this RunAggregationQuery request.

    Set only when [ReadOptions.new_transaction][google.datastore.v1.ReadOptions.new_transaction] was set in [RunAggregationQueryRequest.read_options][google.datastore.v1.RunAggregationQueryRequest.read_options].

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

    Type: Message (Google::Datastore::V1::QueryProfile::ExplainMetrics)

    Query explain metrics. This is only present when the [RunAggregationQueryRequest.explain_options][google.datastore.v1.RunAggregationQueryRequest.explain_options] is provided, and it is sent only once with the last response in the stream.

Google::Datastore::V1::Datastore::BeginTransactionRequest

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

Inherits from Protobuf::Message.

Accessors

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

    Type: String

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

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

    Type: String

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

    '(default)' is not allowed; please use empty string '' to refer the default database.

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

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

    Options for a new transaction.

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

    Type: Message (Google::Datastore::V1::Datastore::RequestOptions)

    Optional. The options for this request.

Google::Datastore::V1::Datastore::BeginTransactionResponse

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

Inherits from Protobuf::Message.

Accessors

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

    Type: Bytes

    The transaction identifier (always present).

Google::Datastore::V1::Datastore::RollbackRequest

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

Inherits from Protobuf::Message.

Accessors

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

    Type: String

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

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

    Type: String

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

    '(default)' is not allowed; please use empty string '' to refer the default database.

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

    Type: Bytes

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

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

    Type: Message (Google::Datastore::V1::Datastore::RequestOptions)

    Optional. The options for this request.

Google::Datastore::V1::Datastore::RollbackResponse

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

Inherits from Protobuf::Message.

Google::Datastore::V1::Datastore::CommitRequest

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

Inherits from Protobuf::Message.

Accessors

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

    Type: String

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

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

    Type: String

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

    '(default)' is not allowed; please use empty string '' to refer the default database.

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

    Type: Enum (Google::Datastore::V1::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.v1.Datastore.BeginTransaction].

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

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

    Options for beginning a new transaction for this request. The transaction is committed when the request completes. If specified, [TransactionOptions.mode][google.datastore.v1.TransactionOptions] must be [TransactionOptions.ReadWrite][google.datastore.v1.TransactionOptions.ReadWrite].

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

    Type: Message (Google::Datastore::V1::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.

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

    Type: Message (Google::Datastore::V1::Datastore::RequestOptions)

    Optional. The options for this request.

Enum: CommitRequest::Mode

  • MODE_UNSPECIFIED => 0

  • TRANSACTIONAL => 1

  • NON_TRANSACTIONAL => 2

Google::Datastore::V1::Datastore::CommitResponse

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

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Datastore::V1::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.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    The transaction commit timestamp. Not set for non-transactional commits.

Google::Datastore::V1::Datastore::AllocateIdsRequest

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

Inherits from Protobuf::Message.

Accessors

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

    Type: String

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

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

    Type: String

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

    '(default)' is not allowed; please use empty string '' to refer the default database.

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

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

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

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

    Type: Message (Google::Datastore::V1::Datastore::RequestOptions)

    Optional. The options for this request.

Google::Datastore::V1::Datastore::AllocateIdsResponse

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

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Datastore::V1::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::V1::Datastore::ReserveIdsRequest

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

Inherits from Protobuf::Message.

Accessors

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

    Type: String

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

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

    Type: String

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

    '(default)' is not allowed; please use empty string '' to refer the default database.

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

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

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

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

    Type: Message (Google::Datastore::V1::Datastore::RequestOptions)

    Optional. The options for this request.

Google::Datastore::V1::Datastore::ReserveIdsResponse

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

Inherits from Protobuf::Message.

Google::Datastore::V1::Datastore::Mutation

A mutation to apply to an entity.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Datastore::V1::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::V1::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::V1::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::V1::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.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

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

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

    Type: Enum (Google::Datastore::V1::Mutation::ConflictResolutionStrategy)

    The strategy to use when a conflict is detected. Defaults to `SERVER_VALUE`. If this is set, then `conflict_detection_strategy` must also be set.

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

    Type: Message (Google::Datastore::V1::Datastore::PropertyMask)

    The properties to write in this mutation. None of the properties in the mask may have a reserved name, except for `__key__`. This field is ignored for `delete`.

    If the entity already exists, only properties referenced in the mask are updated, others are left untouched. Properties referenced in the mask but not in the entity are deleted.

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

    Type: Message (Google::Datastore::V1::Datastore::PropertyTransform)

    Optional. The transforms to perform on the entity.

    This field can be set only when the operation is `insert`, `update`, or `upsert`. If present, the transforms are be applied to the entity regardless of the property mask, in order, after the operation.

Enum: Mutation::ConflictResolutionStrategy

  • STRATEGY_UNSPECIFIED => 0

  • SERVER_VALUE => 1

  • FAIL => 3

Google::Datastore::V1::Datastore::PropertyTransform

A transformation of an entity property.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Optional. The name of the property.

    Property paths (a list of property names separated by dots (`.`)) may be used to refer to properties inside entity values. For example `foo.bar` means the property `bar` inside the entity property `foo`.

    If a property name contains a dot `.` or a backlslash `\`, then that name must be escaped.

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

    Type: Enum (Google::Datastore::V1::PropertyTransform::ServerValue)

    Sets the property to the given server value.

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

    Type: Message (Google::Datastore::V1::Entity::Value)

    Adds the given value to the property's current value.

    This must be an integer or a double value. If the property is not an integer or double, or if the property does not yet exist, the transformation will set the property to the given value. If either of the given value or the current property value are doubles, both values will be interpreted as doubles. Double arithmetic and representation of double values follows IEEE 754 semantics. If there is positive/negative integer overflow, the property is resolved to the largest magnitude positive/negative integer.

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

    Type: Message (Google::Datastore::V1::Entity::Value)

    Sets the property to the maximum of its current value and the given value.

    This must be an integer or a double value. If the property is not an integer or double, or if the property does not yet exist, the transformation will set the property to the given value. If a maximum operation is applied where the property and the input value are of mixed types (that is - one is an integer and one is a double) the property takes on the type of the larger operand. If the operands are equivalent (e.g. 3 and 3.0), the property does not change. 0, 0.0, and -0.0 are all zero. The maximum of a zero stored value and zero input value is always the stored value. The maximum of any numeric value x and NaN is NaN.

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

    Type: Message (Google::Datastore::V1::Entity::Value)

    Sets the property to the minimum of its current value and the given value.

    This must be an integer or a double value. If the property is not an integer or double, or if the property does not yet exist, the transformation will set the property to the input value. If a minimum operation is applied where the property and the input value are of mixed types (that is - one is an integer and one is a double) the property takes on the type of the smaller operand. If the operands are equivalent (e.g. 3 and 3.0), the property does not change. 0, 0.0, and -0.0 are all zero. The minimum of a zero stored value and zero input value is always the stored value. The minimum of any numeric value x and NaN is NaN.

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

    Type: Message (Google::Datastore::V1::Entity::ArrayValue)

    Appends the given elements in order if they are not already present in the current property value. If the property is not an array, or if the property does not yet exist, it is first set to the empty array.

    Equivalent numbers of different types (e.g. 3L and 3.0) are considered equal when checking if a value is missing. NaN is equal to NaN, and the null value is equal to the null value. If the input contains multiple equivalent values, only the first will be considered.

    The corresponding transform result will be the null value.

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

    Type: Message (Google::Datastore::V1::Entity::ArrayValue)

    Removes all of the given elements from the array in the property. If the property is not an array, or if the property does not yet exist, it is set to the empty array.

    Equivalent numbers of different types (e.g. 3L and 3.0) are considered equal when deciding whether an element should be removed. NaN is equal to NaN, and the null value is equal to the null value. This will remove all equivalent values if there are duplicates.

    The corresponding transform result will be the null value.

Enum: PropertyTransform::ServerValue

  • SERVER_VALUE_UNSPECIFIED => 0

  • REQUEST_TIME => 1

Google::Datastore::V1::Datastore::MutationResult

The result of applying a mutation.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Datastore::V1::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->create_time() / $msg->create_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    The create time of the entity. This field will not be set after a 'delete'.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    The update time of the entity on the server after processing the mutation. If the mutation doesn't change anything on the server, then the timestamp will be the update timestamp of the current entity. This field will not be set after a 'delete'.

  • $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.

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

    Type: Message (Google::Datastore::V1::Entity::Value)

    The results of applying each [PropertyTransform][google.datastore.v1.PropertyTransform], in the same order of the request.

Google::Datastore::V1::Datastore::PropertyMask

The set of arbitrarily nested property paths used to restrict an operation to only a subset of properties in an entity.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The paths to the properties covered by this mask.

    A path is a list of property names separated by dots (`.`), for example `foo.bar` means the property `bar` inside the entity property `foo` inside the entity associated with this path.

    If a property name contains a dot `.` or a backslash `\`, then that name must be escaped.

    A path must not be empty, and may not reference a value inside an [array value][google.datastore.v1.Value.array_value].

Google::Datastore::V1::Datastore::ReadOptions

The options shared by read requests.

Inherits from Protobuf::Message.

Accessors

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

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

    The non-transactional read consistency to use.

  • $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.v1.Datastore.BeginTransaction].

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

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

    Options for beginning a new transaction for this request.

    The new transaction identifier will be returned in the corresponding response as either [LookupResponse.transaction][google.datastore.v1.LookupResponse.transaction] or [RunQueryResponse.transaction][google.datastore.v1.RunQueryResponse.transaction].

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Reads entities as they were at the given time. This value is only supported for Cloud Firestore in Datastore mode.

    This must be a microsecond precision timestamp within the past one hour, or if Point-in-Time Recovery is enabled, can additionally be a whole minute timestamp within the past 7 days.

Enum: ReadOptions::ReadConsistency

  • READ_CONSISTENCY_UNSPECIFIED => 0

  • STRONG => 1

  • EVENTUAL => 2

Google::Datastore::V1::Datastore::TransactionOptions

Options for beginning a new transaction.

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

Inherits from Protobuf::Message.

Accessors

Google::Datastore::V1::Datastore::RequestOptions

Options for a request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Optional. The request tags for the request. The tags are processed as follows: - Truncated to 510 characters. - Filtered out if empty. - Deduplicated. - Limited to 50 tags.

SEE ALSO

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

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.