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 8dd9e19 commit 7797b14
Show file tree
Hide file tree
Showing 10 changed files with 9,886 additions and 6,113 deletions.

Large diffs are not rendered by default.

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

from google.cloud.videointelligence_v1.proto import video_intelligence_pb2 as google_dot_cloud_dot_videointelligence__v1_dot_proto_dot_video__intelligence__pb2
from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2
from google.cloud.videointelligence_v1.proto import (
video_intelligence_pb2 as google_dot_cloud_dot_videointelligence__v1_dot_proto_dot_video__intelligence__pb2,
)
from google.longrunning import (
operations_pb2 as google_dot_longrunning_dot_operations__pb2,
)


class VideoIntelligenceServiceStub(object):
"""Service that implements Google Cloud Video Intelligence API.
"""Service that implements Google Cloud Video Intelligence API.
"""

def __init__(self, channel):
"""Constructor.
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.AnnotateVideo = channel.unary_unary(
'/google.cloud.videointelligence.v1.VideoIntelligenceService/AnnotateVideo',
request_serializer=google_dot_cloud_dot_videointelligence__v1_dot_proto_dot_video__intelligence__pb2.AnnotateVideoRequest.SerializeToString,
response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString,
self.AnnotateVideo = channel.unary_unary(
"/google.cloud.videointelligence.v1.VideoIntelligenceService/AnnotateVideo",
request_serializer=google_dot_cloud_dot_videointelligence__v1_dot_proto_dot_video__intelligence__pb2.AnnotateVideoRequest.SerializeToString,
response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString,
)


class VideoIntelligenceServiceServicer(object):
"""Service that implements Google Cloud Video Intelligence API.
"""Service that implements Google Cloud Video Intelligence API.
"""

def AnnotateVideo(self, request, context):
"""Performs asynchronous video annotation. Progress and results can be
def AnnotateVideo(self, request, context):
"""Performs asynchronous video annotation. Progress and results can be
retrieved through the `google.longrunning.Operations` interface.
`Operation.metadata` contains `AnnotateVideoProgress` (progress).
`Operation.response` contains `AnnotateVideoResponse` (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_VideoIntelligenceServiceServicer_to_server(servicer, server):
rpc_method_handlers = {
'AnnotateVideo': grpc.unary_unary_rpc_method_handler(
servicer.AnnotateVideo,
request_deserializer=google_dot_cloud_dot_videointelligence__v1_dot_proto_dot_video__intelligence__pb2.AnnotateVideoRequest.FromString,
response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'google.cloud.videointelligence.v1.VideoIntelligenceService', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))
rpc_method_handlers = {
"AnnotateVideo": grpc.unary_unary_rpc_method_handler(
servicer.AnnotateVideo,
request_deserializer=google_dot_cloud_dot_videointelligence__v1_dot_proto_dot_video__intelligence__pb2.AnnotateVideoRequest.FromString,
response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString,
)
}
generic_handler = grpc.method_handlers_generic_handler(
"google.cloud.videointelligence.v1.VideoIntelligenceService",
rpc_method_handlers,
)
server.add_generic_rpc_handlers((generic_handler,))

Large diffs are not rendered by default.

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

from google.cloud.videointelligence_v1beta1.proto import video_intelligence_pb2 as google_dot_cloud_dot_videointelligence__v1beta1_dot_proto_dot_video__intelligence__pb2
from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2
from google.cloud.videointelligence_v1beta1.proto import (
video_intelligence_pb2 as google_dot_cloud_dot_videointelligence__v1beta1_dot_proto_dot_video__intelligence__pb2,
)
from google.longrunning import (
operations_pb2 as google_dot_longrunning_dot_operations__pb2,
)


class VideoIntelligenceServiceStub(object):
"""Service that implements Google Cloud Video Intelligence API.
"""Service that implements Google Cloud Video Intelligence API.
"""

def __init__(self, channel):
"""Constructor.
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.AnnotateVideo = channel.unary_unary(
'/google.cloud.videointelligence.v1beta1.VideoIntelligenceService/AnnotateVideo',
request_serializer=google_dot_cloud_dot_videointelligence__v1beta1_dot_proto_dot_video__intelligence__pb2.AnnotateVideoRequest.SerializeToString,
response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString,
self.AnnotateVideo = channel.unary_unary(
"/google.cloud.videointelligence.v1beta1.VideoIntelligenceService/AnnotateVideo",
request_serializer=google_dot_cloud_dot_videointelligence__v1beta1_dot_proto_dot_video__intelligence__pb2.AnnotateVideoRequest.SerializeToString,
response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString,
)


class VideoIntelligenceServiceServicer(object):
"""Service that implements Google Cloud Video Intelligence API.
"""Service that implements Google Cloud Video Intelligence API.
"""

def AnnotateVideo(self, request, context):
"""Performs asynchronous video annotation. Progress and results can be
def AnnotateVideo(self, request, context):
"""Performs asynchronous video annotation. Progress and results can be
retrieved through the `google.longrunning.Operations` interface.
`Operation.metadata` contains `AnnotateVideoProgress` (progress).
`Operation.response` contains `AnnotateVideoResponse` (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_VideoIntelligenceServiceServicer_to_server(servicer, server):
rpc_method_handlers = {
'AnnotateVideo': grpc.unary_unary_rpc_method_handler(
servicer.AnnotateVideo,
request_deserializer=google_dot_cloud_dot_videointelligence__v1beta1_dot_proto_dot_video__intelligence__pb2.AnnotateVideoRequest.FromString,
response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'google.cloud.videointelligence.v1beta1.VideoIntelligenceService', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))
rpc_method_handlers = {
"AnnotateVideo": grpc.unary_unary_rpc_method_handler(
servicer.AnnotateVideo,
request_deserializer=google_dot_cloud_dot_videointelligence__v1beta1_dot_proto_dot_video__intelligence__pb2.AnnotateVideoRequest.FromString,
response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString,
)
}
generic_handler = grpc.method_handlers_generic_handler(
"google.cloud.videointelligence.v1beta1.VideoIntelligenceService",
rpc_method_handlers,
)
server.add_generic_rpc_handlers((generic_handler,))
Loading

0 comments on commit 7797b14

Please sign in to comment.