Some or all of the information on this page might not apply to Trusted Cloud by S3NS.
Class Entity (2.30.0)
Note: Some or all of the information on this page might not apply
to Trusted Cloud. For a list of services that are available in
Trusted Cloud, see Services available for
Trusted Cloud .
Version 2.30.0keyboard_arrow_down
public final class Entity extends FullEntity<Key>
An entity is the Google Cloud Datastore persistent data object for a specific key. An entity will
always have a complete Key .
Static Methods
calculateSerializedSize(BaseEntity<? extends IncompleteKey> entity)
public static int calculateSerializedSize ( BaseEntity <? extends IncompleteKey > entity )
Returns the size in bytes of the protobuf form of the provided entity.
Parameter
Name
Description
entity
BaseEntity <? extends com.google.cloud.datastore.IncompleteKey >
object whose size is measured.
Returns
Type
Description
int
fromPb(Entity entityPb)
public static Entity fromPb ( Entity entityPb )
Parameter
Name
Description
entityPb
Entity
Returns
Type
Description
Entity
newBuilder(Entity copyFrom)
public static Entity . Builder newBuilder ( Entity copyFrom )
Parameter
Name
Description
copyFrom
Entity
newBuilder(Key key)
public static Entity . Builder newBuilder ( Key key )
Parameter
Name
Description
key
Key
newBuilder(Key key, FullEntity<?> copyFrom)
public static Entity . Builder newBuilder ( Key key , FullEntity <? > copyFrom )
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-18 UTC."],[],[]]