public interface EntityOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
containsProperties(String key)
public abstract 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 name must not contain more than 500 characters.
The name cannot be ""
.
map<string, .google.datastore.v1.Value> properties = 3;
Name | Description |
key | String |
Type | Description |
boolean |
getKey()
public abstract 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;
Type | Description |
Key | The key. |
getKeyOrBuilder()
public abstract 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;
Type | Description |
KeyOrBuilder |
getProperties()
public abstract Map<String,Value> getProperties()
Use #getPropertiesMap() instead.
Type | Description |
Map<String,Value> |
getPropertiesCount()
public abstract 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 name must not contain more than 500 characters.
The name cannot be ""
.
map<string, .google.datastore.v1.Value> properties = 3;
Type | Description |
int |
getPropertiesMap()
public abstract 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 name must not contain more than 500 characters.
The name cannot be ""
.
map<string, .google.datastore.v1.Value> properties = 3;
Type | Description |
Map<String,Value> |
getPropertiesOrDefault(String key, Value defaultValue)
public abstract 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 name must not contain more than 500 characters.
The name cannot be ""
.
map<string, .google.datastore.v1.Value> properties = 3;
Name | Description |
key | String |
defaultValue | Value |
Type | Description |
Value |
getPropertiesOrThrow(String key)
public abstract 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 name must not contain more than 500 characters.
The name cannot be ""
.
map<string, .google.datastore.v1.Value> properties = 3;
Name | Description |
key | String |
Type | Description |
Value |
hasKey()
public abstract 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;
Type | Description |
boolean | Whether the key field is set. |