googleapis / googleapis/google-cloud-java

[java-datastore] Make `fromPb` constructors public

未关闭
#11,998 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
api: datastore type: feature request
主要语言
Java
星标
2.1k
派生
1.2k
平均合并
1 天 23 小时
30 天内合并 PR
154

描述

**Is your feature request related to a problem? Please describe.**
I often run across situations where I have either a `com.google.datastore.v1.Key` or `com.google.datastore.v1.Entity` and would like to transform it into a `com.google.cloud.datastore.[Key|Entity]`. There currently exists `fromPb` constructors within this codebase, but they are not accessible outside of the `com.google.datastore` namespace.

**Describe the solution you'd like**
Making the `public`.

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

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。