Package com.google.cloud.datastore
Class IncompleteKey
- java.lang.Object
-
- com.google.cloud.datastore.BaseKey
-
- com.google.cloud.datastore.IncompleteKey
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Key
public class IncompleteKey extends BaseKey
An incomplete key (without a name or id). This class is immutable.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IncompleteKey.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Key
getParent()
Returns the key's parent.static IncompleteKey.Builder
newBuilder(IncompleteKey copyFrom)
static IncompleteKey.Builder
newBuilder(Key parent, String kind)
static IncompleteKey.Builder
newBuilder(String projectId, String kind)
static IncompleteKey.Builder
newBuilderWithDatabaseId(String projectId, String kind, String databaseId)
-
Methods inherited from class com.google.cloud.datastore.BaseKey
equals, getAncestors, getDatabaseId, getKind, getNamespace, getProjectId, hashCode, toString
-
-
-
-
Method Detail
-
getParent
public Key getParent()
Returns the key's parent.
-
newBuilder
public static IncompleteKey.Builder newBuilder(String projectId, String kind)
-
newBuilderWithDatabaseId
@BetaApi public static IncompleteKey.Builder newBuilderWithDatabaseId(String projectId, String kind, String databaseId)
-
newBuilder
public static IncompleteKey.Builder newBuilder(IncompleteKey copyFrom)
-
newBuilder
public static IncompleteKey.Builder newBuilder(Key parent, String kind)
-
-