Skip to content

Commit

Permalink
blacken all gen'd libs (#6792)
Browse files Browse the repository at this point in the history
* blacken all gen'd libs
  • Loading branch information
crwilcox authored Nov 30, 2018
1 parent c83e5bd commit 091b1fa
Show file tree
Hide file tree
Showing 40 changed files with 25,358 additions and 16,033 deletions.
480 changes: 293 additions & 187 deletions packages/google-cloud-vision/google/cloud/vision_v1/proto/geometry_pb2.py

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc

5,374 changes: 3,301 additions & 2,073 deletions packages/google-cloud-vision/google/cloud/vision_v1/proto/image_annotator_pb2.py

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,73 +1,78 @@
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc

from google.cloud.vision_v1.proto import image_annotator_pb2 as google_dot_cloud_dot_vision__v1_dot_proto_dot_image__annotator__pb2
from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2
from google.cloud.vision_v1.proto import (
image_annotator_pb2 as google_dot_cloud_dot_vision__v1_dot_proto_dot_image__annotator__pb2,
)
from google.longrunning import (
operations_pb2 as google_dot_longrunning_dot_operations__pb2,
)


class ImageAnnotatorStub(object):
"""Service that performs Google Cloud Vision API detection tasks over client
"""Service that performs Google Cloud Vision API detection tasks over client
images, such as face, landmark, logo, label, and text detection. The
ImageAnnotator service returns detected entities from the images.
"""

def __init__(self, channel):
"""Constructor.
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.BatchAnnotateImages = channel.unary_unary(
'/google.cloud.vision.v1.ImageAnnotator/BatchAnnotateImages',
request_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_image__annotator__pb2.BatchAnnotateImagesRequest.SerializeToString,
response_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_image__annotator__pb2.BatchAnnotateImagesResponse.FromString,
self.BatchAnnotateImages = channel.unary_unary(
"/google.cloud.vision.v1.ImageAnnotator/BatchAnnotateImages",
request_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_image__annotator__pb2.BatchAnnotateImagesRequest.SerializeToString,
response_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_image__annotator__pb2.BatchAnnotateImagesResponse.FromString,
)
self.AsyncBatchAnnotateFiles = channel.unary_unary(
'/google.cloud.vision.v1.ImageAnnotator/AsyncBatchAnnotateFiles',
request_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_image__annotator__pb2.AsyncBatchAnnotateFilesRequest.SerializeToString,
response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString,
self.AsyncBatchAnnotateFiles = channel.unary_unary(
"/google.cloud.vision.v1.ImageAnnotator/AsyncBatchAnnotateFiles",
request_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_image__annotator__pb2.AsyncBatchAnnotateFilesRequest.SerializeToString,
response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString,
)


class ImageAnnotatorServicer(object):
"""Service that performs Google Cloud Vision API detection tasks over client
"""Service that performs Google Cloud Vision API detection tasks over client
images, such as face, landmark, logo, label, and text detection. The
ImageAnnotator service returns detected entities from the images.
"""

def BatchAnnotateImages(self, request, context):
"""Run image detection and annotation for a batch of images.
def BatchAnnotateImages(self, request, context):
"""Run image detection and annotation for a batch of images.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details("Method not implemented!")
raise NotImplementedError("Method not implemented!")

def AsyncBatchAnnotateFiles(self, request, context):
"""Run asynchronous image detection and annotation for a list of generic
def AsyncBatchAnnotateFiles(self, request, context):
"""Run asynchronous image detection and annotation for a list of generic
files, such as PDF files, which may contain multiple pages and multiple
images per page. Progress and results can be retrieved through the
`google.longrunning.Operations` interface.
`Operation.metadata` contains `OperationMetadata` (metadata).
`Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details("Method not implemented!")
raise NotImplementedError("Method not implemented!")


def add_ImageAnnotatorServicer_to_server(servicer, server):
rpc_method_handlers = {
'BatchAnnotateImages': grpc.unary_unary_rpc_method_handler(
servicer.BatchAnnotateImages,
request_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_image__annotator__pb2.BatchAnnotateImagesRequest.FromString,
response_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_image__annotator__pb2.BatchAnnotateImagesResponse.SerializeToString,
),
'AsyncBatchAnnotateFiles': grpc.unary_unary_rpc_method_handler(
servicer.AsyncBatchAnnotateFiles,
request_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_image__annotator__pb2.AsyncBatchAnnotateFilesRequest.FromString,
response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'google.cloud.vision.v1.ImageAnnotator', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))
rpc_method_handlers = {
"BatchAnnotateImages": grpc.unary_unary_rpc_method_handler(
servicer.BatchAnnotateImages,
request_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_image__annotator__pb2.BatchAnnotateImagesRequest.FromString,
response_serializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_image__annotator__pb2.BatchAnnotateImagesResponse.SerializeToString,
),
"AsyncBatchAnnotateFiles": grpc.unary_unary_rpc_method_handler(
servicer.AsyncBatchAnnotateFiles,
request_deserializer=google_dot_cloud_dot_vision__v1_dot_proto_dot_image__annotator__pb2.AsyncBatchAnnotateFilesRequest.FromString,
response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
"google.cloud.vision.v1.ImageAnnotator", rpc_method_handlers
)
server.add_generic_rpc_handlers((generic_handler,))
Loading

0 comments on commit 091b1fa

Please sign in to comment.