Class EntityTranslator


  • public class EntityTranslator
    extends 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.
    • 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)