google-cloud-java
google-cloud-java copied to clipboard
Bigtable: Request for Query#fromProto in models.Query
It would be nice to have Query.fromProto() for v2.models.Query to be able to convert to/from ReadRowsRequest.java.
As of now in TemplateUtil.java, we are using ValueProvider for ReadRowsRequst, but once migrating to Query, we wouldn't be able to create Query in TemplateUtis#RequestValueProvider#get as tableId will not be available until the latter part of the execution.
Related refactoring PR: https://github.com/GoogleCloudPlatform/cloud-bigtable-client/pull/2025
Closing this Issue, as Query#fromProto changes are merged.