-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding gRPC stubs to Bigtable clients #1154
Conversation
e33fe3d
to
3e97689
Compare
@tseaver Rebased on top of `master. PTAL. |
@@ -15,7 +15,7 @@ | |||
'google-apitools', | |||
'httplib2 >= 0.9.1', | |||
'oauth2client >= 1.4.6', | |||
'protobuf == 3.0.0-alpha-1', | |||
'protobuf >= 3.0.0a3', |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
3e97689
to
e68a114
Compare
@tseaver PTAL. (So you can at least get a feel for how stubs are created and how they work.) |
What would be smoothest? I dropped off reviewing this one because it seemed like #1159 was the Right Thing(TM) for dealing with the wonky |
I think #1159 would be smoothest. If we decide NOT to split out into sub-packages then we can revive this. |
from gcloud.client import _ClientFactoryMixin | ||
from gcloud.client import _ClientProjectMixin | ||
from gcloud.credentials import get_credentials | ||
|
||
|
||
TABLE_STUB_FACTORY = (bigtable_table_service_pb2. | ||
early_adopter_create_BigtableTableService_stub) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
For now, just adding custom getters which will tell users whether the Client has been started. Commit to add methods to actually make the stubs and start the Client will be forthcoming.
This creates gRPC stubs for talking to each Bigtable service needed by the client.
e68a114
to
32c4c95
Compare
In particular, explaining why we __enter__ them but have no corresponding __enter__ for our users.
@tseaver PTAL. I added a comment in the 3rd commit. |
LGTM. |
Adding gRPC stubs to Bigtable clients
NOTE: Uses #1153 as diffbase