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
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description boolean
containsProperties(String key)
The entity's properties.Key
getKey()
The entity's key.KeyOrBuilder
getKeyOrBuilder()
The entity's key.Map<String,Value>
getProperties()
Deprecated.int
getPropertiesCount()
The entity's properties.Map<String,Value>
getPropertiesMap()
The entity's properties.Value
getPropertiesOrDefault(String key, Value defaultValue)
The entity's properties.Value
getPropertiesOrThrow(String key)
The entity's properties.boolean
hasKey()
The entity's key.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
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
boolean containsProperties(String key)
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 Map<String,Value> getProperties()
Deprecated.UsegetPropertiesMap()
instead.
-
getPropertiesMap
Map<String,Value> 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
Value getPropertiesOrDefault(String key, Value defaultValue)
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
Value getPropertiesOrThrow(String key)
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;
-
-