NAME
Google::Datastore::V1beta3::Entity - Compiled Protocol Buffers messages for google/datastore/v1beta3/entity.proto
SYNOPSIS
use Google::Datastore::V1beta3::Entity;
my $msg = Google::Datastore::V1beta3::Entity::PartitionId->new({
project_id => $project_id,
namespace_id => $namespace_id,
});
# Read or update a field
my $val = $msg->project_id();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Datastore::V1beta3::Entity::PartitionId->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/datastore/v1beta3/entity.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::Entity::PartitionId
A partition ID identifies a grouping of entities. The grouping is always by project and namespace, however the namespace ID may be empty.
A partition ID contains several dimensions: project ID and namespace ID.
Partition dimensions:
- May be `""`. - Must be valid UTF-8 bytes. - Must have values that match regex `[A-Za-z\d\.\-_]{1,100}` If the value of any dimension matches regex `__.*__`, the partition is reserved/read-only. A reserved/read-only partition ID is forbidden in certain documented contexts.
Foreign partition IDs (in which the project ID does not match the context project ID ) are discouraged. Reads and writes of foreign partition IDs may fail if the project is not in an active state.
Inherits from Protobuf::Message.
Accessors
$msg->project_id()/$msg->project_id($value)Type:
StringThe ID of the project to which the entities belong.
$msg->namespace_id()/$msg->namespace_id($value)Type:
StringIf not empty, the ID of the namespace to which the entities belong.
Google::Datastore::V1beta3::Entity::Key
A unique identifier for an entity. If a key's partition ID or any of its path kinds or names are reserved/read-only, the key is reserved/read-only. A reserved/read-only key is forbidden in certain documented contexts.
Inherits from Protobuf::Message.
Accessors
$msg->partition_id()/$msg->partition_id($value)Type:
Message(Google::Datastore::V1beta3::Entity::PartitionId)Entities are partitioned into subsets, currently identified by a project ID and namespace ID. Queries are scoped to a single partition.
$msg->path()/$msg->path($value)Type:
Message(Google::Datastore::V1beta3::Entity::Key::PathElement)The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a _root entity_, the second element identifies a _child_ of the root entity, the third element identifies a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's _ancestors_.
An entity path is always fully complete: *all* of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. For example, the last path element of the key of `Mutation.insert` may have no identifier.
A path can never be empty, and a path can have at most 100 elements.
Google::Datastore::V1beta3::Entity::ArrayValue
An array value.
Inherits from Protobuf::Message.
Accessors
$msg->values()/$msg->values($value)Type:
Message(Google::Datastore::V1beta3::Entity::Value)Values in the array. The order of this array may not be preserved if it contains a mix of indexed and unindexed values.
Google::Datastore::V1beta3::Entity::Value
A message that can hold any of the supported value types and associated metadata.
Inherits from Protobuf::Message.
Accessors
$msg->null_value()/$msg->null_value($value)Type:
Enum(Google::Protobuf::NullValue)A null value.
$msg->boolean_value()/$msg->boolean_value($value)Type:
BoolA boolean value.
$msg->integer_value()/$msg->integer_value($value)Type:
Int64An integer value.
$msg->double_value()/$msg->double_value($value)Type:
DoubleA double value.
$msg->timestamp_value()/$msg->timestamp_value($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)A timestamp value. When stored in the Datastore, precise only to microseconds; any additional precision is rounded down.
$msg->key_value()/$msg->key_value($value)Type:
Message(Google::Datastore::V1beta3::Entity::Key)A key value.
$msg->string_value()/$msg->string_value($value)Type:
StringA UTF-8 encoded string value. When `exclude_from_indexes` is false (it is indexed), may have at most 1500 bytes. Otherwise, may be set to at most 1,000,000 bytes.
$msg->blob_value()/$msg->blob_value($value)Type:
BytesA blob value. May have at most 1,000,000 bytes. When `exclude_from_indexes` is false, may have at most 1500 bytes. In JSON requests, must be base64-encoded.
$msg->geo_point_value()/$msg->geo_point_value($value)Type:
Message(Google::Type::Latlng::LatLng)A geo point value representing a point on the surface of Earth.
$msg->entity_value()/$msg->entity_value($value)Type:
Message(Google::Datastore::V1beta3::Entity::Entity)An entity value.
- May have no key. - May have a key with an incomplete key path. - May have a reserved/read-only key.
$msg->array_value()/$msg->array_value($value)Type:
Message(Google::Datastore::V1beta3::Entity::ArrayValue)An array value. Cannot contain another array value. A `Value` instance that sets field `array_value` must not set fields `meaning` or `exclude_from_indexes`.
$msg->meaning()/$msg->meaning($value)Type:
Int32The `meaning` field should only be populated for backwards compatibility.
$msg->exclude_from_indexes()/$msg->exclude_from_indexes($value)Type:
BoolIf the value should be excluded from all indexes including those defined explicitly.
Google::Datastore::V1beta3::Entity::Entity
A Datastore data object.
An entity is limited to 1 megabyte when stored. That _roughly_ corresponds to a limit of 1 megabyte for the serialized form of this message.
Inherits from Protobuf::Message.
Accessors
$msg->key()/$msg->key($value)Type:
Message(Google::Datastore::V1beta3::Entity::Key)The entity's key.
An entity must have a key, unless otherwise documented (for example, an entity in `Value.entity_value` may have no key). An entity's kind is its key path's last element's kind, or null if it has no key.
$msg->properties()/$msg->properties($value)Type:
Message(Google::Datastore::V1beta3::Entity::Entity::PropertiesEntry)The entity's properties. The map's keys are property names. A property name matching regex `__.*__` is reserved. A reserved property name is forbidden in certain documented contexts. The name must not contain more than 500 characters. The name cannot be `""`.
SEE ALSO
Protobuf, Protobuf::Message, Google::Datastore::V1beta3::Entity::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.