public class EntityTranslator
extends java.lang.Object
EntityTranslator
contains the logic to translate an
Entity
into the protocol buffers that are used to pass it to the
implementation of the API.
| Modifier and Type | Method and Description |
|---|---|
static EntityProto
|
convertToPb
(
Entity
entity)
|
static
Entity
|
createFromPb
(EntityProto proto)
|
static
Entity
|
createFromPb
(EntityProto proto,
java.util.Collection<
Projection
> projections)
|
static
Entity
|
createFromPbBytes
(byte[] pbBytes)
|
public static Entity createFromPb(EntityProto proto, java.util.Collection<Projection> projections)
public static Entity createFromPb(EntityProto proto)
public static Entity createFromPbBytes(byte[] pbBytes)
public static EntityProto convertToPb(Entity entity)