There are cases where users want to convert com.google.cloud.datastore.Entity objects to native protobuf Entity objects (com.google.datastore.v1.Entity). For ex: while using Cloud Dataflow DatastoreIO, which only works with protobuf Entities. It would be nice to expose the toPb method by making it public.
There are cases where users want to convert com.google.cloud.datastore.Entity objects to native protobuf Entity objects (com.google.datastore.v1.Entity). For ex: while using Cloud Dataflow DatastoreIO, which only works with protobuf Entities. It would be nice to expose the toPb method by making it public.