Package com.google.cloud.datastore
Class Key.Builder
- java.lang.Object
-
- com.google.cloud.datastore.BaseKey.Builder<Key.Builder>
-
- com.google.cloud.datastore.Key.Builder
-
- Enclosing class:
- Key
public static final class Key.Builder extends BaseKey.Builder<Key.Builder>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Keybuild()Key.BuildersetId(long id)Sets the ID of this key.Key.BuildersetName(String name)Sets the name of this key.-
Methods inherited from class com.google.cloud.datastore.BaseKey.Builder
addAncestor, addAncestors, addAncestors, setDatabaseId, setKind, setNamespace, setProjectId
-
-
-
-
Method Detail
-
setName
public Key.Builder setName(String name)
Sets the name of this key.
-
setId
public Key.Builder setId(long id)
Sets the ID of this key.
-
build
public Key build()
- Specified by:
buildin classBaseKey.Builder<Key.Builder>
-
-