Class EntityTranslator
- java.lang.Object
-
- com.google.appengine.api.datastore.EntityTranslator
-
public class EntityTranslator extends Object
EntityTranslator
contains the logic to translate anEntity
into the protocol buffers that are used to pass it to the implementation of the API.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.google.storage.onestore.v3.OnestoreEntity.EntityProto
convertToPb(Entity entity)
static Entity
createFromPb(com.google.storage.onestore.v3.OnestoreEntity.EntityProto proto)
static Entity
createFromPb(com.google.storage.onestore.v3.OnestoreEntity.EntityProto proto, Collection<Projection> projections)
static Entity
createFromPbBytes(byte[] pbBytes)
-
-
-
Method Detail
-
createFromPb
public static Entity createFromPb(com.google.storage.onestore.v3.OnestoreEntity.EntityProto proto, Collection<Projection> projections)
-
createFromPb
public static Entity createFromPb(com.google.storage.onestore.v3.OnestoreEntity.EntityProto proto)
-
createFromPbBytes
public static Entity createFromPbBytes(byte[] pbBytes)
-
convertToPb
public static com.google.storage.onestore.v3.OnestoreEntity.EntityProto convertToPb(Entity entity)
-
-