Interface EntityOrBuilder (2.4.0)

public interface EntityOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

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;

Parameter
NameDescription
keyString
Returns
TypeDescription
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;

Returns
TypeDescription
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;

Returns
TypeDescription
KeyOrBuilder

getProperties()

public abstract Map<String,Value> getProperties()

Use #getPropertiesMap() instead.

Returns
TypeDescription
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;

Returns
TypeDescription
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;

Returns
TypeDescription
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;

Parameters
NameDescription
keyString
defaultValueValue
Returns
TypeDescription
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;

Parameter
NameDescription
keyString
Returns
TypeDescription
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;

Returns
TypeDescription
boolean

Whether the key field is set.