public static enum EntityResult.ResultType extends Enum<EntityResult.ResultType> implements com.google.protobuf.ProtocolMessageEnum
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 enum
google.datastore.v1.EntityResult.ResultType
Enum Constant and Description |
---|
FULL
The key and properties.
|
KEY_ONLY
Only the key.
|
PROJECTION
A projected subset of properties.
|
RESULT_TYPE_UNSPECIFIED
Unspecified.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
FULL_VALUE
The key and properties.
|
static int |
KEY_ONLY_VALUE
Only the key.
|
static int |
PROJECTION_VALUE
A projected subset of properties.
|
static int |
RESULT_TYPE_UNSPECIFIED_VALUE
Unspecified.
|
Modifier and Type | Method and Description |
---|---|
static EntityResult.ResultType |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<EntityResult.ResultType> |
internalGetValueMap() |
static EntityResult.ResultType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static EntityResult.ResultType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static EntityResult.ResultType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EntityResult.ResultType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EntityResult.ResultType RESULT_TYPE_UNSPECIFIED
Unspecified. This value is never used.
RESULT_TYPE_UNSPECIFIED = 0;
public static final EntityResult.ResultType FULL
The key and properties.
FULL = 1;
public static final EntityResult.ResultType PROJECTION
A projected subset of properties. The entity may have no key.
PROJECTION = 2;
public static final EntityResult.ResultType KEY_ONLY
Only the key.
KEY_ONLY = 3;
public static final EntityResult.ResultType UNRECOGNIZED
public static final int RESULT_TYPE_UNSPECIFIED_VALUE
Unspecified. This value is never used.
RESULT_TYPE_UNSPECIFIED = 0;
public static final int FULL_VALUE
The key and properties.
FULL = 1;
public static final int PROJECTION_VALUE
A projected subset of properties. The entity may have no key.
PROJECTION = 2;
public static final int KEY_ONLY_VALUE
Only the key.
KEY_ONLY = 3;
public static EntityResult.ResultType[] values()
for (EntityResult.ResultType c : EntityResult.ResultType.values()) System.out.println(c);
public static EntityResult.ResultType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
@Deprecated public static EntityResult.ResultType valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static EntityResult.ResultType forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<EntityResult.ResultType> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static EntityResult.ResultType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.