public final class Key
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 |
---|
Key() |
Modifier and Type | Method and Description |
---|---|
Key |
clone() |
PartitionId |
getPartitionId()
Entities are partitioned into subsets, currently identified by a project ID and namespace ID.
|
java.util.List<PathElement> |
getPath()
The entity path.
|
Key |
set(java.lang.String fieldName,
java.lang.Object value) |
Key |
setPartitionId(PartitionId partitionId)
Entities are partitioned into subsets, currently identified by a project ID and namespace ID.
|
Key |
setPath(java.util.List<PathElement> path)
The entity path.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public PartitionId getPartitionId()
null
for nonepublic Key setPartitionId(PartitionId partitionId)
partitionId
- partitionId or null
for nonepublic java.util.List<PathElement> getPath()
null
for nonepublic Key setPath(java.util.List<PathElement> path)
path
- path or null
for nonepublic Key set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Key clone()
clone
in class com.google.api.client.json.GenericJson