Reference documentation and code samples for the Cloud Datastore V1 Client class ResultType.
Specifies what data the 'entity' field contains.
AResultTypeis either implied (for example, inLookupResponse.missingfromdatastore.proto, it is alwaysKEY_ONLY) or specified by context
(for example, in messageQueryResultBatch, fieldentity_result_typespecifies aResultTypefor all the values in fieldentity_results).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Cloud Datastore V1 Client - Class ResultType (1.33.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.33.1 (latest)](/php/docs/reference/cloud-datastore/latest/V1.EntityResult.ResultType)\n- [1.33.0](/php/docs/reference/cloud-datastore/1.33.0/V1.EntityResult.ResultType)\n- [1.32.3](/php/docs/reference/cloud-datastore/1.32.3/V1.EntityResult.ResultType)\n- [1.31.0](/php/docs/reference/cloud-datastore/1.31.0/V1.EntityResult.ResultType)\n- [1.30.0](/php/docs/reference/cloud-datastore/1.30.0/V1.EntityResult.ResultType)\n- [1.29.2](/php/docs/reference/cloud-datastore/1.29.2/V1.EntityResult.ResultType)\n- [1.28.2](/php/docs/reference/cloud-datastore/1.28.2/V1.EntityResult.ResultType)\n- [1.26.0](/php/docs/reference/cloud-datastore/1.26.0/V1.EntityResult.ResultType)\n- [1.25.0](/php/docs/reference/cloud-datastore/1.25.0/V1.EntityResult.ResultType)\n- [1.24.4](/php/docs/reference/cloud-datastore/1.24.4/V1.EntityResult.ResultType)\n- [1.23.0](/php/docs/reference/cloud-datastore/1.23.0/V1.EntityResult.ResultType)\n- [1.22.1](/php/docs/reference/cloud-datastore/1.22.1/V1.EntityResult.ResultType)\n- [1.21.2](/php/docs/reference/cloud-datastore/1.21.2/V1.EntityResult.ResultType)\n- [1.19.0](/php/docs/reference/cloud-datastore/1.19.0/V1.EntityResult.ResultType)\n- [1.18.1](/php/docs/reference/cloud-datastore/1.18.1/V1.EntityResult.ResultType)\n- [1.17.1](/php/docs/reference/cloud-datastore/1.17.1/V1.EntityResult.ResultType) \nReference documentation and code samples for the Cloud Datastore V1 Client class ResultType.\n\nSpecifies what data the 'entity' field contains.\n\nA `ResultType` is either implied (for example, in `LookupResponse.missing`\nfrom `datastore.proto`, it is always `KEY_ONLY`) or specified by context\n(for example, in message `QueryResultBatch`, field `entity_result_type`\nspecifies a `ResultType` for all the values in field `entity_results`).\n\nProtobuf type `google.datastore.v1.EntityResult.ResultType`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Datastore \\\\ V1 \\\\ EntityResult\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### RESULT_TYPE_UNSPECIFIED\n\n Value: 0\n\nUnspecified. This value is never used.\n\nGenerated from protobuf enum `RESULT_TYPE_UNSPECIFIED = 0;`\n\n### FULL\n\n Value: 1\n\nThe key and properties.\n\nGenerated from protobuf enum `FULL = 1;`\n\n### PROJECTION\n\n Value: 2\n\nA projected subset of properties. The entity may have no key.\n\nGenerated from protobuf enum `PROJECTION = 2;`\n\n### KEY_ONLY\n\n Value: 3\n\nOnly the key.\n\nGenerated from protobuf enum `KEY_ONLY = 3;`"]]