Interface EntityOrBuilder (0.16.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 map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.

map<string, .google.events.cloud.datastore.v1.Value> properties = 3;

Parameter
Name Description
key String
Returns
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.events.cloud.datastore.v1.Key key = 1;

Returns
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.events.cloud.datastore.v1.Key key = 1;

Returns
Type Description
KeyOrBuilder

getProperties()

public abstract Map<String,Value> getProperties()

Use #getPropertiesMap() instead.

Returns
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 map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.

map<string, .google.events.cloud.datastore.v1.Value> properties = 3;

Returns
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 map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.

map<string, .google.events.cloud.datastore.v1.Value> properties = 3;

Returns
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 map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.

map<string, .google.events.cloud.datastore.v1.Value> properties = 3;

Parameters
Name Description
key String
defaultValue Value
Returns
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 map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.

map<string, .google.events.cloud.datastore.v1.Value> properties = 3;

Parameter
Name Description
key String
Returns
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.events.cloud.datastore.v1.Key key = 1;

Returns
Type Description
boolean

Whether the key field is set.