-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* blacken all gen'd libs
- Loading branch information
Showing
10 changed files
with
9,886 additions
and
6,113 deletions.
There are no files selected for viewing
3,866 changes: 2,411 additions & 1,455 deletions
3,866
...cloud-videointelligence/google/cloud/videointelligence_v1/proto/video_intelligence_pb2.py
Large diffs are not rendered by default.
Oops, something went wrong.
56 changes: 31 additions & 25 deletions
56
...-videointelligence/google/cloud/videointelligence_v1/proto/video_intelligence_pb2_grpc.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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,)) |
2,299 changes: 1,423 additions & 876 deletions
2,299
...-videointelligence/google/cloud/videointelligence_v1beta1/proto/video_intelligence_pb2.py
Large diffs are not rendered by default.
Oops, something went wrong.
56 changes: 31 additions & 25 deletions
56
...ointelligence/google/cloud/videointelligence_v1beta1/proto/video_intelligence_pb2_grpc.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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,)) |
Oops, something went wrong.