Skip to content

Commit 7797b14

Browse files
authored
blacken all gen'd libs (#6792)
* blacken all gen'd libs
1 parent 8dd9e19 commit 7797b14

File tree

10 files changed

+9886
-6113
lines changed

10 files changed

+9886
-6113
lines changed

packages/google-cloud-videointelligence/google/cloud/videointelligence_v1/proto/video_intelligence_pb2.py

Lines changed: 2411 additions & 1455 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,56 @@
11
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
22
import grpc
33

4-
from google.cloud.videointelligence_v1.proto import video_intelligence_pb2 as google_dot_cloud_dot_videointelligence__v1_dot_proto_dot_video__intelligence__pb2
5-
from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2
4+
from google.cloud.videointelligence_v1.proto import (
5+
video_intelligence_pb2 as google_dot_cloud_dot_videointelligence__v1_dot_proto_dot_video__intelligence__pb2,
6+
)
7+
from google.longrunning import (
8+
operations_pb2 as google_dot_longrunning_dot_operations__pb2,
9+
)
610

711

812
class VideoIntelligenceServiceStub(object):
9-
"""Service that implements Google Cloud Video Intelligence API.
13+
"""Service that implements Google Cloud Video Intelligence API.
1014
"""
1115

12-
def __init__(self, channel):
13-
"""Constructor.
16+
def __init__(self, channel):
17+
"""Constructor.
1418
1519
Args:
1620
channel: A grpc.Channel.
1721
"""
18-
self.AnnotateVideo = channel.unary_unary(
19-
'/google.cloud.videointelligence.v1.VideoIntelligenceService/AnnotateVideo',
20-
request_serializer=google_dot_cloud_dot_videointelligence__v1_dot_proto_dot_video__intelligence__pb2.AnnotateVideoRequest.SerializeToString,
21-
response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString,
22+
self.AnnotateVideo = channel.unary_unary(
23+
"/google.cloud.videointelligence.v1.VideoIntelligenceService/AnnotateVideo",
24+
request_serializer=google_dot_cloud_dot_videointelligence__v1_dot_proto_dot_video__intelligence__pb2.AnnotateVideoRequest.SerializeToString,
25+
response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString,
2226
)
2327

2428

2529
class VideoIntelligenceServiceServicer(object):
26-
"""Service that implements Google Cloud Video Intelligence API.
30+
"""Service that implements Google Cloud Video Intelligence API.
2731
"""
2832

29-
def AnnotateVideo(self, request, context):
30-
"""Performs asynchronous video annotation. Progress and results can be
33+
def AnnotateVideo(self, request, context):
34+
"""Performs asynchronous video annotation. Progress and results can be
3135
retrieved through the `google.longrunning.Operations` interface.
3236
`Operation.metadata` contains `AnnotateVideoProgress` (progress).
3337
`Operation.response` contains `AnnotateVideoResponse` (results).
3438
"""
35-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
36-
context.set_details('Method not implemented!')
37-
raise NotImplementedError('Method not implemented!')
39+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
40+
context.set_details("Method not implemented!")
41+
raise NotImplementedError("Method not implemented!")
3842

3943

4044
def add_VideoIntelligenceServiceServicer_to_server(servicer, server):
41-
rpc_method_handlers = {
42-
'AnnotateVideo': grpc.unary_unary_rpc_method_handler(
43-
servicer.AnnotateVideo,
44-
request_deserializer=google_dot_cloud_dot_videointelligence__v1_dot_proto_dot_video__intelligence__pb2.AnnotateVideoRequest.FromString,
45-
response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString,
46-
),
47-
}
48-
generic_handler = grpc.method_handlers_generic_handler(
49-
'google.cloud.videointelligence.v1.VideoIntelligenceService', rpc_method_handlers)
50-
server.add_generic_rpc_handlers((generic_handler,))
45+
rpc_method_handlers = {
46+
"AnnotateVideo": grpc.unary_unary_rpc_method_handler(
47+
servicer.AnnotateVideo,
48+
request_deserializer=google_dot_cloud_dot_videointelligence__v1_dot_proto_dot_video__intelligence__pb2.AnnotateVideoRequest.FromString,
49+
response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString,
50+
)
51+
}
52+
generic_handler = grpc.method_handlers_generic_handler(
53+
"google.cloud.videointelligence.v1.VideoIntelligenceService",
54+
rpc_method_handlers,
55+
)
56+
server.add_generic_rpc_handlers((generic_handler,))

packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta1/proto/video_intelligence_pb2.py

Lines changed: 1423 additions & 876 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,56 @@
11
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
22
import grpc
33

4-
from google.cloud.videointelligence_v1beta1.proto import video_intelligence_pb2 as google_dot_cloud_dot_videointelligence__v1beta1_dot_proto_dot_video__intelligence__pb2
5-
from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2
4+
from google.cloud.videointelligence_v1beta1.proto import (
5+
video_intelligence_pb2 as google_dot_cloud_dot_videointelligence__v1beta1_dot_proto_dot_video__intelligence__pb2,
6+
)
7+
from google.longrunning import (
8+
operations_pb2 as google_dot_longrunning_dot_operations__pb2,
9+
)
610

711

812
class VideoIntelligenceServiceStub(object):
9-
"""Service that implements Google Cloud Video Intelligence API.
13+
"""Service that implements Google Cloud Video Intelligence API.
1014
"""
1115

12-
def __init__(self, channel):
13-
"""Constructor.
16+
def __init__(self, channel):
17+
"""Constructor.
1418
1519
Args:
1620
channel: A grpc.Channel.
1721
"""
18-
self.AnnotateVideo = channel.unary_unary(
19-
'/google.cloud.videointelligence.v1beta1.VideoIntelligenceService/AnnotateVideo',
20-
request_serializer=google_dot_cloud_dot_videointelligence__v1beta1_dot_proto_dot_video__intelligence__pb2.AnnotateVideoRequest.SerializeToString,
21-
response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString,
22+
self.AnnotateVideo = channel.unary_unary(
23+
"/google.cloud.videointelligence.v1beta1.VideoIntelligenceService/AnnotateVideo",
24+
request_serializer=google_dot_cloud_dot_videointelligence__v1beta1_dot_proto_dot_video__intelligence__pb2.AnnotateVideoRequest.SerializeToString,
25+
response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString,
2226
)
2327

2428

2529
class VideoIntelligenceServiceServicer(object):
26-
"""Service that implements Google Cloud Video Intelligence API.
30+
"""Service that implements Google Cloud Video Intelligence API.
2731
"""
2832

29-
def AnnotateVideo(self, request, context):
30-
"""Performs asynchronous video annotation. Progress and results can be
33+
def AnnotateVideo(self, request, context):
34+
"""Performs asynchronous video annotation. Progress and results can be
3135
retrieved through the `google.longrunning.Operations` interface.
3236
`Operation.metadata` contains `AnnotateVideoProgress` (progress).
3337
`Operation.response` contains `AnnotateVideoResponse` (results).
3438
"""
35-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
36-
context.set_details('Method not implemented!')
37-
raise NotImplementedError('Method not implemented!')
39+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
40+
context.set_details("Method not implemented!")
41+
raise NotImplementedError("Method not implemented!")
3842

3943

4044
def add_VideoIntelligenceServiceServicer_to_server(servicer, server):
41-
rpc_method_handlers = {
42-
'AnnotateVideo': grpc.unary_unary_rpc_method_handler(
43-
servicer.AnnotateVideo,
44-
request_deserializer=google_dot_cloud_dot_videointelligence__v1beta1_dot_proto_dot_video__intelligence__pb2.AnnotateVideoRequest.FromString,
45-
response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString,
46-
),
47-
}
48-
generic_handler = grpc.method_handlers_generic_handler(
49-
'google.cloud.videointelligence.v1beta1.VideoIntelligenceService', rpc_method_handlers)
50-
server.add_generic_rpc_handlers((generic_handler,))
45+
rpc_method_handlers = {
46+
"AnnotateVideo": grpc.unary_unary_rpc_method_handler(
47+
servicer.AnnotateVideo,
48+
request_deserializer=google_dot_cloud_dot_videointelligence__v1beta1_dot_proto_dot_video__intelligence__pb2.AnnotateVideoRequest.FromString,
49+
response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString,
50+
)
51+
}
52+
generic_handler = grpc.method_handlers_generic_handler(
53+
"google.cloud.videointelligence.v1beta1.VideoIntelligenceService",
54+
rpc_method_handlers,
55+
)
56+
server.add_generic_rpc_handlers((generic_handler,))

0 commit comments

Comments
 (0)