Package com.google.cloud.datastore
Class Entity
- All Implemented Interfaces:
Serializable
An entity is the Google Cloud Datastore persistent data object for a specific key. An entity will
always have a complete
Key
.- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
calculateSerializedSize
(BaseEntity<? extends IncompleteKey> entity) Returns the size in bytes of the protobuf form of the provided entity.static Entity
static Entity.Builder
newBuilder
(Entity copyFrom) static Entity.Builder
newBuilder
(Key key) static Entity.Builder
newBuilder
(Key key, FullEntity<?> copyFrom) Methods inherited from class com.google.cloud.datastore.FullEntity
newBuilder, newBuilder, newBuilder
-
Method Details
-
newBuilder
-
newBuilder
-
newBuilder
-
fromPb
-
calculateSerializedSize
Returns the size in bytes of the protobuf form of the provided entity.- Parameters:
entity
- object whose size is measured.
-