[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003e\u003ccode\u003eEntityTranslator\u003c/code\u003e is a class that handles the conversion of an \u003ccode\u003eEntity\u003c/code\u003e object into protocol buffers for API communication.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from \u003ccode\u003ejava.lang.Object\u003c/code\u003e and includes inherited members like \u003ccode\u003eclone()\u003c/code\u003e, \u003ccode\u003eequals()\u003c/code\u003e, and \u003ccode\u003etoString()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003econvertToPb(Entity entity)\u003c/code\u003e static method translates an \u003ccode\u003eEntity\u003c/code\u003e into an \u003ccode\u003eOnestoreEntity.EntityProto\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe static methods \u003ccode\u003ecreateFromPb\u003c/code\u003e are used to take a \u003ccode\u003eOnestoreEntity.EntityProto\u003c/code\u003e or byte array and create a new \u003ccode\u003eEntity\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eThere are multiple static \u003ccode\u003ecreateFromPb\u003c/code\u003e methods, one taking only a \u003ccode\u003eOnestoreEntity.EntityProto\u003c/code\u003e, another a \u003ccode\u003eOnestoreEntity.EntityProto\u003c/code\u003e and a Collection of Projections, and another a byte array.\u003c/p\u003e\n"]]],[],null,["# Class EntityTranslator (2.0.0)\n\n public class EntityTranslator\n\n`EntityTranslator` contains the logic to translate an `Entity` into the protocol\nbuffers that are used to pass it to the implementation of the API. \n\nInheritance\n-----------\n\n[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e EntityTranslator \n\nInherited Members\n-----------------\n\n[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) \n[Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) \n[Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) \n[Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) \n[Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) \n[Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) \n[Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) \n[Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)\n\nStatic Methods\n--------------\n\n### convertToPb(Entity entity)\n\n public static OnestoreEntity.EntityProto convertToPb(Entity entity)\n\n### createFromPb(OnestoreEntity.EntityProto proto)\n\n public static Entity createFromPb(OnestoreEntity.EntityProto proto)\n\n### createFromPb(OnestoreEntity.EntityProto proto, Collection\\\u003cProjection\\\u003e projections)\n\n public static Entity createFromPb(OnestoreEntity.EntityProto proto, Collection\u003cProjection\u003e projections)\n\n### createFromPbBytes(byte\\[\\] pbBytes)\n\n public static Entity createFromPbBytes(byte[] pbBytes)"]]