public final class Entity extends FullEntity<Key>
Key.| Modifier and Type | Class and Description |
|---|---|
static class |
Entity.Builder |
| Modifier and Type | Method and Description |
|---|---|
static int |
calculateSerializedSize(BaseEntity<? extends IncompleteKey> entity)
Returns the size in bytes of the protobuf form of the provided entity.
|
static Entity |
fromPb(Entity entityPb) |
static Entity.Builder |
newBuilder(Entity copyFrom) |
static Entity.Builder |
newBuilder(Key key) |
static Entity.Builder |
newBuilder(Key key,
FullEntity<?> copyFrom) |
newBuilderpublic static Entity.Builder newBuilder(Key key)
public static Entity.Builder newBuilder(Entity copyFrom)
public static Entity.Builder newBuilder(Key key, FullEntity<?> copyFrom)
public static int calculateSerializedSize(BaseEntity<? extends IncompleteKey> entity)
entity - object whose size is measured.Copyright © 2020 Google LLC. All rights reserved.