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