Cloud Datastore V1 Client - Class ResultType (1.21.2)

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

Methods

name

Parameter
NameDescription
value mixed

value

Parameter
NameDescription
name mixed

Constants

RESULT_TYPE_UNSPECIFIED

Value: 0

Unspecified. This value is never used.

Generated from protobuf enum RESULT_TYPE_UNSPECIFIED = 0;

FULL

Value: 1

The key and properties.

Generated from protobuf enum FULL = 1;

PROJECTION

Value: 2

A projected subset of properties. The entity may have no key.

Generated from protobuf enum PROJECTION = 2;

KEY_ONLY

Value: 3

Only the key.

Generated from protobuf enum KEY_ONLY = 3;