public final class Entity
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Cloud Datastore API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
Entity() |
Modifier and Type | Method and Description |
---|---|
Entity |
clone() |
Key |
getKey()
The entity's key.
|
java.util.Map<java.lang.String,Value> |
getProperties()
The entity's properties.
|
Entity |
set(java.lang.String fieldName,
java.lang.Object value) |
Entity |
setKey(Key key)
The entity's key.
|
Entity |
setProperties(java.util.Map<java.lang.String,Value> properties)
The entity's properties.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public Key getKey()
null
for nonepublic Entity setKey(Key key)
key
- key or null
for nonepublic java.util.Map<java.lang.String,Value> getProperties()
null
for nonepublic Entity setProperties(java.util.Map<java.lang.String,Value> properties)
properties
- properties or null
for nonepublic Entity set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Entity clone()
clone
in class com.google.api.client.json.GenericJson