Package com.google.datastore.v1
Interface EntityOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Entity
,Entity.Builder
public interface EntityOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsProperties
(String key) The entity's properties.getKey()
The entity's key.The entity's key.Deprecated.int
The entity's properties.The entity's properties.getPropertiesOrDefault
(String key, Value defaultValue) The entity's properties.The entity's properties.boolean
hasKey()
The entity's key.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasKey
boolean hasKey()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.
.google.datastore.v1.Key key = 1;
- Returns:
- Whether the key field is set.
-
getKey
Key getKey()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.
.google.datastore.v1.Key key = 1;
- Returns:
- The key.
-
getKeyOrBuilder
KeyOrBuilder getKeyOrBuilder()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.
.google.datastore.v1.Key key = 1;
-
getPropertiesCount
int getPropertiesCount()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 map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
map<string, .google.datastore.v1.Value> properties = 3;
-
containsProperties
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 map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
map<string, .google.datastore.v1.Value> properties = 3;
-
getProperties
Deprecated.UsegetPropertiesMap()
instead. -
getPropertiesMap
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 map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
map<string, .google.datastore.v1.Value> properties = 3;
-
getPropertiesOrDefault
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 map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
map<string, .google.datastore.v1.Value> properties = 3;
-
getPropertiesOrThrow
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 map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
map<string, .google.datastore.v1.Value> properties = 3;
-