googleapis / googleapis/google-cloud-java

[java-datastore] Make `toPb` methods public

Open
#11,997 0 comments 0 reactions 0 assignees View on GitHub
api: datastore type: feature request
Dominant language
Java
Stars
2.1k
Forks
1.2k
Avg merge
1d 23h
Merged PRs (30d)
154

Description

**Is your feature request related to a problem? Please describe.**
In a similar vein as https://github.com/googleapis/google-cloud-java/issues/11998, there are situations where it would be very useful to convert from `com.google.cloud.datastore.Entity` to `com.google.datastore.v1.Entity`.

**Describe the solution you'd like**
Make `toPb` public.

**Describe alternatives you've considered**
I currently have interop packages of my own living in com.google.datastore that re-export these methods. It works but isn't great.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.