googleapis / googleapis/google-cloud-java

[java-datastore] Make `fromPb` constructors public

Ouverte
#11,998 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
api: datastore type: feature request
Langage dominant
Java
Étoiles
2.1k
Forks
1.2k
Merge moyen
1 j 23 h
PR mergées (30 j)
154

Description

**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.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.