Skip to content
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

Add a starter class for _gax. #2900

Merged

Conversation

daspecster
Copy link
Contributor

Towards #2753

TL;DR This PR just adds the beginning of the _GAPICVisionAPI class and Client branching.

I started just doing the straight up conversion but it got huge.
Then I tried just converting face annotations and that got huge.

So this is part 1 of many, hopefully small PRs to add this in.

There are a lot of classes that will need the from_pb added to them and also test splitting to support both since the JSON responses vary in the value names a lot from the proto responses.

So for starters this was the smallest chunk I could come up with. Next up I will be adding the annotate method which requires some interesting helpers to translate Feature and Images.

@daspecster daspecster added the api: vision Issues related to the Cloud Vision API. label Dec 27, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Dec 27, 2016
Copy link
Contributor

@dhermes dhermes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

:param client: Instance of ``Client`` object.
"""
def __init__(self, client=None):
raise NotImplementedError

This comment was marked as spam.

@daspecster daspecster merged commit f8e499a into googleapis:master Dec 29, 2016
@daspecster daspecster deleted the vision-add-gax-starter-class branch December 29, 2016 15:24
richkadel pushed a commit to richkadel/google-cloud-python that referenced this pull request May 6, 2017
…rter-class

Add a starter class for _gax.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: vision Issues related to the Cloud Vision API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants