Reference documentation and code samples for the Cloud Datastore V1 Client class ResultType.
Specifies what data the 'entity' field contains.
A ResultType is either implied (for example, in LookupResponse.missing
from datastore.proto, it is always KEY_ONLY) or specified by context
(for example, in message QueryResultBatch, field entity_result_type
specifies a ResultType for all the values in field entity_results).
Protobuf type google.datastore.v1.EntityResult.ResultType
Namespace
Google \ Cloud \ Datastore \ V1 \ EntityResultMethods
static::name
| Parameter | |
|---|---|
| Name | Description |
value |
mixed
|
static::value
| Parameter | |
|---|---|
| Name | Description |
name |
mixed
|
Constants
RESULT_TYPE_UNSPECIFIED
Value: 0Unspecified. This value is never used.
Generated from protobuf enum RESULT_TYPE_UNSPECIFIED = 0;
FULL
Value: 1The key and properties.
Generated from protobuf enum FULL = 1;
PROJECTION
Value: 2A projected subset of properties. The entity may have no key.
Generated from protobuf enum PROJECTION = 2;
KEY_ONLY
Value: 3Only the key.
Generated from protobuf enum KEY_ONLY = 3;