From dfc6b8b80792e05a4ab560774570ee3acc4dc6c8 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 30 Jun 2020 17:17:11 -0700 Subject: [PATCH] chore: use new black and 3.8 for tests (#40) * chore(python): fix line breaks in template and use newer black version * chore(python): fix line breaks in template * fix: also update black version Source-Author: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Source-Date: Tue Jun 23 02:33:35 2020 -0700 Source-Repo: googleapis/synthtool Source-Sha: cf2eff09d0f5319a4dc5cdce2b6356d85af4a798 Source-Link: https://github.com/googleapis/synthtool/commit/cf2eff09d0f5319a4dc5cdce2b6356d85af4a798 --- .../docs/conf.py | 2 +- .../google/cloud/videointelligence.py | 6 ++- .../cloud/videointelligence_v1/__init__.py | 6 ++- ...deo_intelligence_service_grpc_transport.py | 4 +- .../video_intelligence_service_client.py | 8 ++-- .../proto/video_intelligence_pb2.py | 22 +++++----- .../proto/video_intelligence_pb2_grpc.py | 2 +- .../cloud/videointelligence_v1/types.py | 14 +++++-- .../videointelligence_v1beta2/__init__.py | 6 ++- ...deo_intelligence_service_grpc_transport.py | 4 +- .../video_intelligence_service_client.py | 8 ++-- .../proto/video_intelligence_pb2.py | 14 +++---- .../proto/video_intelligence_pb2_grpc.py | 2 +- .../cloud/videointelligence_v1beta2/types.py | 14 +++++-- .../videointelligence_v1p1beta1/__init__.py | 6 ++- ...deo_intelligence_service_grpc_transport.py | 4 +- .../video_intelligence_service_client.py | 8 ++-- .../proto/video_intelligence_pb2.py | 16 ++++---- .../proto/video_intelligence_pb2_grpc.py | 2 +- .../videointelligence_v1p1beta1/types.py | 14 +++++-- .../videointelligence_v1p2beta1/__init__.py | 6 ++- ...deo_intelligence_service_grpc_transport.py | 4 +- .../video_intelligence_service_client.py | 8 ++-- .../proto/video_intelligence_pb2.py | 16 ++++---- .../proto/video_intelligence_pb2_grpc.py | 2 +- .../videointelligence_v1p2beta1/types.py | 14 +++++-- ...aming_video_intelligence_service_client.py | 8 ++-- ...deo_intelligence_service_grpc_transport.py | 4 +- ...deo_intelligence_service_grpc_transport.py | 4 +- .../video_intelligence_service_client.py | 8 ++-- .../proto/video_intelligence_pb2.py | 40 +++++++++---------- .../proto/video_intelligence_pb2_grpc.py | 4 +- .../videointelligence_v1p3beta1/types.py | 14 +++++-- .../google-cloud-videointelligence/noxfile.py | 18 ++++++--- .../synth.metadata | 4 +- 35 files changed, 191 insertions(+), 125 deletions(-) diff --git a/packages/google-cloud-videointelligence/docs/conf.py b/packages/google-cloud-videointelligence/docs/conf.py index 6e242abbc9e4..1301874f00d7 100644 --- a/packages/google-cloud-videointelligence/docs/conf.py +++ b/packages/google-cloud-videointelligence/docs/conf.py @@ -337,7 +337,7 @@ intersphinx_mapping = { "python": ("http://python.readthedocs.org/en/latest/", None), "google-auth": ("https://google-auth.readthedocs.io/en/stable", None), - "google.api_core": ("https://googleapis.dev/python/google-api-core/latest/", None), + "google.api_core": ("https://googleapis.dev/python/google-api-core/latest/", None,), "grpc": ("https://grpc.io/grpc/python/", None), } diff --git a/packages/google-cloud-videointelligence/google/cloud/videointelligence.py b/packages/google-cloud-videointelligence/google/cloud/videointelligence.py index eeac2fa2cc7c..289cce4b141f 100644 --- a/packages/google-cloud-videointelligence/google/cloud/videointelligence.py +++ b/packages/google-cloud-videointelligence/google/cloud/videointelligence.py @@ -22,4 +22,8 @@ from google.cloud.videointelligence_v1 import types -__all__ = ("enums", "types", "VideoIntelligenceServiceClient") +__all__ = ( + "enums", + "types", + "VideoIntelligenceServiceClient", +) diff --git a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1/__init__.py b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1/__init__.py index a95658db1eae..e786bed2ef87 100644 --- a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1/__init__.py +++ b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1/__init__.py @@ -40,4 +40,8 @@ class VideoIntelligenceServiceClient( enums = enums -__all__ = ("enums", "types", "VideoIntelligenceServiceClient") +__all__ = ( + "enums", + "types", + "VideoIntelligenceServiceClient", +) diff --git a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1/gapic/transports/video_intelligence_service_grpc_transport.py b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1/gapic/transports/video_intelligence_service_grpc_transport.py index 9abef7a201a8..710074374fd3 100644 --- a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1/gapic/transports/video_intelligence_service_grpc_transport.py +++ b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1/gapic/transports/video_intelligence_service_grpc_transport.py @@ -57,7 +57,7 @@ def __init__( # exception (channels come with credentials baked in already). if channel is not None and credentials is not None: raise ValueError( - "The `channel` and `credentials` arguments are mutually " "exclusive." + "The `channel` and `credentials` arguments are mutually " "exclusive.", ) # Create the channel. @@ -78,7 +78,7 @@ def __init__( self._stubs = { "video_intelligence_service_stub": video_intelligence_pb2_grpc.VideoIntelligenceServiceStub( channel - ) + ), } # Because this API includes a method that returns a diff --git a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1/gapic/video_intelligence_service_client.py b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1/gapic/video_intelligence_service_client.py index 39583518aebd..9e10eaa9f4bb 100644 --- a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1/gapic/video_intelligence_service_client.py +++ b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1/gapic/video_intelligence_service_client.py @@ -42,7 +42,7 @@ _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - "google-cloud-videointelligence" + "google-cloud-videointelligence", ).version @@ -163,12 +163,12 @@ def __init__( self.transport = transport else: self.transport = video_intelligence_service_grpc_transport.VideoIntelligenceServiceGrpcTransport( - address=api_endpoint, channel=channel, credentials=credentials + address=api_endpoint, channel=channel, credentials=credentials, ) if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION + gapic_version=_GAPIC_LIBRARY_VERSION, ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION @@ -179,7 +179,7 @@ def __init__( # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config["interfaces"][self._INTERFACE_NAME] + client_config["interfaces"][self._INTERFACE_NAME], ) # Save a dictionary of cached API call functions. diff --git a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1/proto/video_intelligence_pb2.py b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1/proto/video_intelligence_pb2.py index 916b83442592..71997f19bd80 100644 --- a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1/proto/video_intelligence_pb2.py +++ b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1/proto/video_intelligence_pb2.py @@ -716,7 +716,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, - ) + ), ], extensions=[], nested_types=[], @@ -757,7 +757,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, - ) + ), ], extensions=[], nested_types=[], @@ -858,7 +858,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, - ) + ), ], extensions=[], nested_types=[], @@ -1376,7 +1376,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, - ) + ), ], extensions=[], nested_types=[], @@ -1515,7 +1515,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, - ) + ), ], extensions=[], nested_types=[], @@ -2356,7 +2356,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, - ) + ), ], extensions=[], nested_types=[], @@ -2533,7 +2533,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, - ) + ), ], extensions=[], nested_types=[], @@ -2767,7 +2767,7 @@ serialized_options=b"\340A\001", file=DESCRIPTOR, create_key=_descriptor._internal_create_key, - ) + ), ], extensions=[], nested_types=[], @@ -3124,7 +3124,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, - ) + ), ], extensions=[], nested_types=[], @@ -3517,7 +3517,7 @@ containing_type=None, create_key=_descriptor._internal_create_key, fields=[], - ) + ), ], serialized_start=7283, serialized_end=7562, @@ -4953,7 +4953,7 @@ output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, serialized_options=b'\202\323\344\223\002\030"\023/v1/videos:annotate:\001*\332A\022input_uri,features\312A.\n\025AnnotateVideoResponse\022\025AnnotateVideoProgress', create_key=_descriptor._internal_create_key, - ) + ), ], ) _sym_db.RegisterServiceDescriptor(_VIDEOINTELLIGENCESERVICE) diff --git a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1/proto/video_intelligence_pb2_grpc.py b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1/proto/video_intelligence_pb2_grpc.py index 672a18eb9f42..217caa64e5b9 100644 --- a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1/proto/video_intelligence_pb2_grpc.py +++ b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1/proto/video_intelligence_pb2_grpc.py @@ -47,7 +47,7 @@ def add_VideoIntelligenceServiceServicer_to_server(servicer, server): 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", diff --git a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1/types.py b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1/types.py index f224c1439fbd..8a467958e5da 100644 --- a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1/types.py +++ b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1/types.py @@ -28,9 +28,17 @@ from google.rpc import status_pb2 -_shared_modules = [operations_pb2, any_pb2, duration_pb2, timestamp_pb2, status_pb2] - -_local_modules = [video_intelligence_pb2] +_shared_modules = [ + operations_pb2, + any_pb2, + duration_pb2, + timestamp_pb2, + status_pb2, +] + +_local_modules = [ + video_intelligence_pb2, +] names = [] diff --git a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta2/__init__.py b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta2/__init__.py index 4cf8a876cea5..a8fbff3a8649 100644 --- a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta2/__init__.py +++ b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta2/__init__.py @@ -42,4 +42,8 @@ class VideoIntelligenceServiceClient( enums = enums -__all__ = ("enums", "types", "VideoIntelligenceServiceClient") +__all__ = ( + "enums", + "types", + "VideoIntelligenceServiceClient", +) diff --git a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta2/gapic/transports/video_intelligence_service_grpc_transport.py b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta2/gapic/transports/video_intelligence_service_grpc_transport.py index b1744590634e..71b4ab66182b 100644 --- a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta2/gapic/transports/video_intelligence_service_grpc_transport.py +++ b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta2/gapic/transports/video_intelligence_service_grpc_transport.py @@ -57,7 +57,7 @@ def __init__( # exception (channels come with credentials baked in already). if channel is not None and credentials is not None: raise ValueError( - "The `channel` and `credentials` arguments are mutually " "exclusive." + "The `channel` and `credentials` arguments are mutually " "exclusive.", ) # Create the channel. @@ -78,7 +78,7 @@ def __init__( self._stubs = { "video_intelligence_service_stub": video_intelligence_pb2_grpc.VideoIntelligenceServiceStub( channel - ) + ), } # Because this API includes a method that returns a diff --git a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta2/gapic/video_intelligence_service_client.py b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta2/gapic/video_intelligence_service_client.py index a467f1891026..a9ab586910ba 100644 --- a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta2/gapic/video_intelligence_service_client.py +++ b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta2/gapic/video_intelligence_service_client.py @@ -42,7 +42,7 @@ _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - "google-cloud-videointelligence" + "google-cloud-videointelligence", ).version @@ -163,12 +163,12 @@ def __init__( self.transport = transport else: self.transport = video_intelligence_service_grpc_transport.VideoIntelligenceServiceGrpcTransport( - address=api_endpoint, channel=channel, credentials=credentials + address=api_endpoint, channel=channel, credentials=credentials, ) if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION + gapic_version=_GAPIC_LIBRARY_VERSION, ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION @@ -179,7 +179,7 @@ def __init__( # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config["interfaces"][self._INTERFACE_NAME] + client_config["interfaces"][self._INTERFACE_NAME], ) # Save a dictionary of cached API call functions. diff --git a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta2/proto/video_intelligence_pb2.py b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta2/proto/video_intelligence_pb2.py index 9ef7a5b3d76a..447166281e1c 100644 --- a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta2/proto/video_intelligence_pb2.py +++ b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta2/proto/video_intelligence_pb2.py @@ -585,7 +585,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, - ) + ), ], extensions=[], nested_types=[], @@ -626,7 +626,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, - ) + ), ], extensions=[], nested_types=[], @@ -1144,7 +1144,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, - ) + ), ], extensions=[], nested_types=[], @@ -1283,7 +1283,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, - ) + ), ], extensions=[], nested_types=[], @@ -1637,7 +1637,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, - ) + ), ], extensions=[], nested_types=[], @@ -1776,7 +1776,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, - ) + ), ], extensions=[], nested_types=[], @@ -2420,7 +2420,7 @@ output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, serialized_options=b'\202\323\344\223\002\035"\030/v1beta2/videos:annotate:\001*\332A\022input_uri,features\312A.\n\025AnnotateVideoResponse\022\025AnnotateVideoProgress', create_key=_descriptor._internal_create_key, - ) + ), ], ) _sym_db.RegisterServiceDescriptor(_VIDEOINTELLIGENCESERVICE) diff --git a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta2/proto/video_intelligence_pb2_grpc.py b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta2/proto/video_intelligence_pb2_grpc.py index f9df0b90a1da..0ae18df746d7 100644 --- a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta2/proto/video_intelligence_pb2_grpc.py +++ b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta2/proto/video_intelligence_pb2_grpc.py @@ -47,7 +47,7 @@ def add_VideoIntelligenceServiceServicer_to_server(servicer, server): servicer.AnnotateVideo, request_deserializer=google_dot_cloud_dot_videointelligence__v1beta2_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.v1beta2.VideoIntelligenceService", diff --git a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta2/types.py b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta2/types.py index 91a59c15ebfc..69366e7c8e43 100644 --- a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta2/types.py +++ b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1beta2/types.py @@ -28,9 +28,17 @@ from google.rpc import status_pb2 -_shared_modules = [operations_pb2, any_pb2, duration_pb2, timestamp_pb2, status_pb2] - -_local_modules = [video_intelligence_pb2] +_shared_modules = [ + operations_pb2, + any_pb2, + duration_pb2, + timestamp_pb2, + status_pb2, +] + +_local_modules = [ + video_intelligence_pb2, +] names = [] diff --git a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p1beta1/__init__.py b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p1beta1/__init__.py index 87d45dec4882..3cc1dbe0c4af 100644 --- a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p1beta1/__init__.py +++ b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p1beta1/__init__.py @@ -42,4 +42,8 @@ class VideoIntelligenceServiceClient( enums = enums -__all__ = ("enums", "types", "VideoIntelligenceServiceClient") +__all__ = ( + "enums", + "types", + "VideoIntelligenceServiceClient", +) diff --git a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p1beta1/gapic/transports/video_intelligence_service_grpc_transport.py b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p1beta1/gapic/transports/video_intelligence_service_grpc_transport.py index 07f7988c2284..d67d7b025ac7 100644 --- a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p1beta1/gapic/transports/video_intelligence_service_grpc_transport.py +++ b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p1beta1/gapic/transports/video_intelligence_service_grpc_transport.py @@ -57,7 +57,7 @@ def __init__( # exception (channels come with credentials baked in already). if channel is not None and credentials is not None: raise ValueError( - "The `channel` and `credentials` arguments are mutually " "exclusive." + "The `channel` and `credentials` arguments are mutually " "exclusive.", ) # Create the channel. @@ -78,7 +78,7 @@ def __init__( self._stubs = { "video_intelligence_service_stub": video_intelligence_pb2_grpc.VideoIntelligenceServiceStub( channel - ) + ), } # Because this API includes a method that returns a diff --git a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p1beta1/gapic/video_intelligence_service_client.py b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p1beta1/gapic/video_intelligence_service_client.py index d752216e7d9d..8d8700060615 100644 --- a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p1beta1/gapic/video_intelligence_service_client.py +++ b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p1beta1/gapic/video_intelligence_service_client.py @@ -42,7 +42,7 @@ _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - "google-cloud-videointelligence" + "google-cloud-videointelligence", ).version @@ -165,12 +165,12 @@ def __init__( self.transport = transport else: self.transport = video_intelligence_service_grpc_transport.VideoIntelligenceServiceGrpcTransport( - address=api_endpoint, channel=channel, credentials=credentials + address=api_endpoint, channel=channel, credentials=credentials, ) if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION + gapic_version=_GAPIC_LIBRARY_VERSION, ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION @@ -181,7 +181,7 @@ def __init__( # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config["interfaces"][self._INTERFACE_NAME] + client_config["interfaces"][self._INTERFACE_NAME], ) # Save a dictionary of cached API call functions. diff --git a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p1beta1/proto/video_intelligence_pb2.py b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p1beta1/proto/video_intelligence_pb2.py index 07b0d1e1533d..bf542aec744a 100644 --- a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p1beta1/proto/video_intelligence_pb2.py +++ b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p1beta1/proto/video_intelligence_pb2.py @@ -585,7 +585,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, - ) + ), ], extensions=[], nested_types=[], @@ -626,7 +626,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, - ) + ), ], extensions=[], nested_types=[], @@ -1084,7 +1084,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, - ) + ), ], extensions=[], nested_types=[], @@ -1299,7 +1299,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, - ) + ), ], extensions=[], nested_types=[], @@ -1438,7 +1438,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, - ) + ), ], extensions=[], nested_types=[], @@ -1615,7 +1615,7 @@ serialized_options=b"\340A\001", file=DESCRIPTOR, create_key=_descriptor._internal_create_key, - ) + ), ], extensions=[], nested_types=[], @@ -1656,7 +1656,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, - ) + ), ], extensions=[], nested_types=[], @@ -2528,7 +2528,7 @@ output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, serialized_options=b'\202\323\344\223\002\037"\032/v1p1beta1/videos:annotate:\001*\332A\022input_uri,features\312A.\n\025AnnotateVideoResponse\022\025AnnotateVideoProgress', create_key=_descriptor._internal_create_key, - ) + ), ], ) _sym_db.RegisterServiceDescriptor(_VIDEOINTELLIGENCESERVICE) diff --git a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p1beta1/proto/video_intelligence_pb2_grpc.py b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p1beta1/proto/video_intelligence_pb2_grpc.py index 91583de36852..ee4e104ea021 100644 --- a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p1beta1/proto/video_intelligence_pb2_grpc.py +++ b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p1beta1/proto/video_intelligence_pb2_grpc.py @@ -47,7 +47,7 @@ def add_VideoIntelligenceServiceServicer_to_server(servicer, server): servicer.AnnotateVideo, request_deserializer=google_dot_cloud_dot_videointelligence__v1p1beta1_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.v1p1beta1.VideoIntelligenceService", diff --git a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p1beta1/types.py b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p1beta1/types.py index ea57ce8f757b..a9acbd45a863 100644 --- a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p1beta1/types.py +++ b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p1beta1/types.py @@ -28,9 +28,17 @@ from google.rpc import status_pb2 -_shared_modules = [operations_pb2, any_pb2, duration_pb2, timestamp_pb2, status_pb2] - -_local_modules = [video_intelligence_pb2] +_shared_modules = [ + operations_pb2, + any_pb2, + duration_pb2, + timestamp_pb2, + status_pb2, +] + +_local_modules = [ + video_intelligence_pb2, +] names = [] diff --git a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p2beta1/__init__.py b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p2beta1/__init__.py index 12809a17db2e..a6cfe01b0267 100644 --- a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p2beta1/__init__.py +++ b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p2beta1/__init__.py @@ -42,4 +42,8 @@ class VideoIntelligenceServiceClient( enums = enums -__all__ = ("enums", "types", "VideoIntelligenceServiceClient") +__all__ = ( + "enums", + "types", + "VideoIntelligenceServiceClient", +) diff --git a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p2beta1/gapic/transports/video_intelligence_service_grpc_transport.py b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p2beta1/gapic/transports/video_intelligence_service_grpc_transport.py index 32f3b0613797..06c95853fe44 100644 --- a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p2beta1/gapic/transports/video_intelligence_service_grpc_transport.py +++ b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p2beta1/gapic/transports/video_intelligence_service_grpc_transport.py @@ -57,7 +57,7 @@ def __init__( # exception (channels come with credentials baked in already). if channel is not None and credentials is not None: raise ValueError( - "The `channel` and `credentials` arguments are mutually " "exclusive." + "The `channel` and `credentials` arguments are mutually " "exclusive.", ) # Create the channel. @@ -78,7 +78,7 @@ def __init__( self._stubs = { "video_intelligence_service_stub": video_intelligence_pb2_grpc.VideoIntelligenceServiceStub( channel - ) + ), } # Because this API includes a method that returns a diff --git a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p2beta1/gapic/video_intelligence_service_client.py b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p2beta1/gapic/video_intelligence_service_client.py index a220c55589e4..915a54c444cb 100644 --- a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p2beta1/gapic/video_intelligence_service_client.py +++ b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p2beta1/gapic/video_intelligence_service_client.py @@ -42,7 +42,7 @@ _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - "google-cloud-videointelligence" + "google-cloud-videointelligence", ).version @@ -165,12 +165,12 @@ def __init__( self.transport = transport else: self.transport = video_intelligence_service_grpc_transport.VideoIntelligenceServiceGrpcTransport( - address=api_endpoint, channel=channel, credentials=credentials + address=api_endpoint, channel=channel, credentials=credentials, ) if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION + gapic_version=_GAPIC_LIBRARY_VERSION, ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION @@ -181,7 +181,7 @@ def __init__( # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config["interfaces"][self._INTERFACE_NAME] + client_config["interfaces"][self._INTERFACE_NAME], ) # Save a dictionary of cached API call functions. diff --git a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p2beta1/proto/video_intelligence_pb2.py b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p2beta1/proto/video_intelligence_pb2.py index 08aad8b8f60f..8c9b179fa6ed 100644 --- a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p2beta1/proto/video_intelligence_pb2.py +++ b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p2beta1/proto/video_intelligence_pb2.py @@ -594,7 +594,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, - ) + ), ], extensions=[], nested_types=[], @@ -635,7 +635,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, - ) + ), ], extensions=[], nested_types=[], @@ -676,7 +676,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, - ) + ), ], extensions=[], nested_types=[], @@ -1134,7 +1134,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, - ) + ), ], extensions=[], nested_types=[], @@ -1466,7 +1466,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, - ) + ), ], extensions=[], nested_types=[], @@ -1605,7 +1605,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, - ) + ), ], extensions=[], nested_types=[], @@ -1706,7 +1706,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, - ) + ), ], extensions=[], nested_types=[], @@ -2818,7 +2818,7 @@ output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, serialized_options=b'\202\323\344\223\002\037"\032/v1p2beta1/videos:annotate:\001*\332A\022input_uri,features\312A.\n\025AnnotateVideoResponse\022\025AnnotateVideoProgress', create_key=_descriptor._internal_create_key, - ) + ), ], ) _sym_db.RegisterServiceDescriptor(_VIDEOINTELLIGENCESERVICE) diff --git a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p2beta1/proto/video_intelligence_pb2_grpc.py b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p2beta1/proto/video_intelligence_pb2_grpc.py index 72674da5e4ef..79221da061aa 100644 --- a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p2beta1/proto/video_intelligence_pb2_grpc.py +++ b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p2beta1/proto/video_intelligence_pb2_grpc.py @@ -47,7 +47,7 @@ def add_VideoIntelligenceServiceServicer_to_server(servicer, server): servicer.AnnotateVideo, request_deserializer=google_dot_cloud_dot_videointelligence__v1p2beta1_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.v1p2beta1.VideoIntelligenceService", diff --git a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p2beta1/types.py b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p2beta1/types.py index 67ba6696b7a8..f3dc467941ff 100644 --- a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p2beta1/types.py +++ b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p2beta1/types.py @@ -28,9 +28,17 @@ from google.rpc import status_pb2 -_shared_modules = [operations_pb2, any_pb2, duration_pb2, timestamp_pb2, status_pb2] - -_local_modules = [video_intelligence_pb2] +_shared_modules = [ + operations_pb2, + any_pb2, + duration_pb2, + timestamp_pb2, + status_pb2, +] + +_local_modules = [ + video_intelligence_pb2, +] names = [] diff --git a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p3beta1/gapic/streaming_video_intelligence_service_client.py b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p3beta1/gapic/streaming_video_intelligence_service_client.py index 46b5a98878ba..2a46f4dbf8db 100644 --- a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p3beta1/gapic/streaming_video_intelligence_service_client.py +++ b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p3beta1/gapic/streaming_video_intelligence_service_client.py @@ -41,7 +41,7 @@ _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - "google-cloud-videointelligence" + "google-cloud-videointelligence", ).version @@ -164,12 +164,12 @@ def __init__( self.transport = transport else: self.transport = streaming_video_intelligence_service_grpc_transport.StreamingVideoIntelligenceServiceGrpcTransport( - address=api_endpoint, channel=channel, credentials=credentials + address=api_endpoint, channel=channel, credentials=credentials, ) if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION + gapic_version=_GAPIC_LIBRARY_VERSION, ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION @@ -180,7 +180,7 @@ def __init__( # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config["interfaces"][self._INTERFACE_NAME] + client_config["interfaces"][self._INTERFACE_NAME], ) # Save a dictionary of cached API call functions. diff --git a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p3beta1/gapic/transports/streaming_video_intelligence_service_grpc_transport.py b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p3beta1/gapic/transports/streaming_video_intelligence_service_grpc_transport.py index bc2cba2f155f..124c9a2154e7 100644 --- a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p3beta1/gapic/transports/streaming_video_intelligence_service_grpc_transport.py +++ b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p3beta1/gapic/transports/streaming_video_intelligence_service_grpc_transport.py @@ -56,7 +56,7 @@ def __init__( # exception (channels come with credentials baked in already). if channel is not None and credentials is not None: raise ValueError( - "The `channel` and `credentials` arguments are mutually " "exclusive." + "The `channel` and `credentials` arguments are mutually " "exclusive.", ) # Create the channel. @@ -77,7 +77,7 @@ def __init__( self._stubs = { "streaming_video_intelligence_service_stub": video_intelligence_pb2_grpc.StreamingVideoIntelligenceServiceStub( channel - ) + ), } @classmethod diff --git a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p3beta1/gapic/transports/video_intelligence_service_grpc_transport.py b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p3beta1/gapic/transports/video_intelligence_service_grpc_transport.py index 1b69eb40098c..f23a6d3ccdc5 100644 --- a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p3beta1/gapic/transports/video_intelligence_service_grpc_transport.py +++ b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p3beta1/gapic/transports/video_intelligence_service_grpc_transport.py @@ -57,7 +57,7 @@ def __init__( # exception (channels come with credentials baked in already). if channel is not None and credentials is not None: raise ValueError( - "The `channel` and `credentials` arguments are mutually " "exclusive." + "The `channel` and `credentials` arguments are mutually " "exclusive.", ) # Create the channel. @@ -78,7 +78,7 @@ def __init__( self._stubs = { "video_intelligence_service_stub": video_intelligence_pb2_grpc.VideoIntelligenceServiceStub( channel - ) + ), } # Because this API includes a method that returns a diff --git a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p3beta1/gapic/video_intelligence_service_client.py b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p3beta1/gapic/video_intelligence_service_client.py index 6951e17c8a1b..ad989e967668 100644 --- a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p3beta1/gapic/video_intelligence_service_client.py +++ b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p3beta1/gapic/video_intelligence_service_client.py @@ -42,7 +42,7 @@ _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - "google-cloud-videointelligence" + "google-cloud-videointelligence", ).version @@ -165,12 +165,12 @@ def __init__( self.transport = transport else: self.transport = video_intelligence_service_grpc_transport.VideoIntelligenceServiceGrpcTransport( - address=api_endpoint, channel=channel, credentials=credentials + address=api_endpoint, channel=channel, credentials=credentials, ) if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION + gapic_version=_GAPIC_LIBRARY_VERSION, ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION @@ -181,7 +181,7 @@ def __init__( # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config["interfaces"][self._INTERFACE_NAME] + client_config["interfaces"][self._INTERFACE_NAME], ) # Save a dictionary of cached API call functions. diff --git a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p3beta1/proto/video_intelligence_pb2.py b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p3beta1/proto/video_intelligence_pb2.py index db1ad7de4774..1d0bf9117f3e 100644 --- a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p3beta1/proto/video_intelligence_pb2.py +++ b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p3beta1/proto/video_intelligence_pb2.py @@ -841,7 +841,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, - ) + ), ], extensions=[], nested_types=[], @@ -882,7 +882,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, - ) + ), ], extensions=[], nested_types=[], @@ -923,7 +923,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, - ) + ), ], extensions=[], nested_types=[], @@ -1599,7 +1599,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, - ) + ), ], extensions=[], nested_types=[], @@ -2173,7 +2173,7 @@ ), ], extensions=[], - nested_types=[_CELEBRITYTRACK_RECOGNIZEDCELEBRITY], + nested_types=[_CELEBRITYTRACK_RECOGNIZEDCELEBRITY,], enum_types=[], serialized_options=None, is_extendable=False, @@ -2211,7 +2211,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, - ) + ), ], extensions=[], nested_types=[], @@ -2391,7 +2391,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, - ) + ), ], extensions=[], nested_types=[], @@ -2777,7 +2777,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, - ) + ), ], extensions=[], nested_types=[], @@ -2954,7 +2954,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, - ) + ), ], extensions=[], nested_types=[], @@ -3188,7 +3188,7 @@ serialized_options=b"\340A\001", file=DESCRIPTOR, create_key=_descriptor._internal_create_key, - ) + ), ], extensions=[], nested_types=[], @@ -3545,7 +3545,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, - ) + ), ], extensions=[], nested_types=[], @@ -3938,7 +3938,7 @@ containing_type=None, create_key=_descriptor._internal_create_key, fields=[], - ) + ), ], serialized_start=8433, serialized_end=8733, @@ -4086,7 +4086,7 @@ containing_type=None, create_key=_descriptor._internal_create_key, fields=[], - ) + ), ], serialized_start=8971, serialized_end=9136, @@ -4288,7 +4288,7 @@ containing_type=None, create_key=_descriptor._internal_create_key, fields=[], - ) + ), ], serialized_start=9139, serialized_end=10173, @@ -4519,7 +4519,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, - ) + ), ], extensions=[], nested_types=[], @@ -4602,7 +4602,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, - ) + ), ], extensions=[], nested_types=[], @@ -4643,7 +4643,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, - ) + ), ], extensions=[], nested_types=[], @@ -4684,7 +4684,7 @@ serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, - ) + ), ], extensions=[], nested_types=[], @@ -6619,7 +6619,7 @@ output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, serialized_options=b'\202\323\344\223\002\037"\032/v1p3beta1/videos:annotate:\001*\332A\022input_uri,features\312A.\n\025AnnotateVideoResponse\022\025AnnotateVideoProgress', create_key=_descriptor._internal_create_key, - ) + ), ], ) _sym_db.RegisterServiceDescriptor(_VIDEOINTELLIGENCESERVICE) @@ -6646,7 +6646,7 @@ output_type=_STREAMINGANNOTATEVIDEORESPONSE, serialized_options=None, create_key=_descriptor._internal_create_key, - ) + ), ], ) _sym_db.RegisterServiceDescriptor(_STREAMINGVIDEOINTELLIGENCESERVICE) diff --git a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p3beta1/proto/video_intelligence_pb2_grpc.py b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p3beta1/proto/video_intelligence_pb2_grpc.py index 933b586ca7e6..3bbfc2bb5d9e 100644 --- a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p3beta1/proto/video_intelligence_pb2_grpc.py +++ b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p3beta1/proto/video_intelligence_pb2_grpc.py @@ -47,7 +47,7 @@ def add_VideoIntelligenceServiceServicer_to_server(servicer, server): servicer.AnnotateVideo, request_deserializer=google_dot_cloud_dot_videointelligence__v1p3beta1_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.v1p3beta1.VideoIntelligenceService", @@ -93,7 +93,7 @@ def add_StreamingVideoIntelligenceServiceServicer_to_server(servicer, server): servicer.StreamingAnnotateVideo, request_deserializer=google_dot_cloud_dot_videointelligence__v1p3beta1_dot_proto_dot_video__intelligence__pb2.StreamingAnnotateVideoRequest.FromString, response_serializer=google_dot_cloud_dot_videointelligence__v1p3beta1_dot_proto_dot_video__intelligence__pb2.StreamingAnnotateVideoResponse.SerializeToString, - ) + ), } generic_handler = grpc.method_handlers_generic_handler( "google.cloud.videointelligence.v1p3beta1.StreamingVideoIntelligenceService", diff --git a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p3beta1/types.py b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p3beta1/types.py index ed9b4d4ccb6b..021939b69217 100644 --- a/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p3beta1/types.py +++ b/packages/google-cloud-videointelligence/google/cloud/videointelligence_v1p3beta1/types.py @@ -28,9 +28,17 @@ from google.rpc import status_pb2 -_shared_modules = [operations_pb2, any_pb2, duration_pb2, timestamp_pb2, status_pb2] - -_local_modules = [video_intelligence_pb2] +_shared_modules = [ + operations_pb2, + any_pb2, + duration_pb2, + timestamp_pb2, + status_pb2, +] + +_local_modules = [ + video_intelligence_pb2, +] names = [] diff --git a/packages/google-cloud-videointelligence/noxfile.py b/packages/google-cloud-videointelligence/noxfile.py index 020a25a7577d..b0c6d59ffa12 100644 --- a/packages/google-cloud-videointelligence/noxfile.py +++ b/packages/google-cloud-videointelligence/noxfile.py @@ -23,11 +23,11 @@ import nox -BLACK_VERSION = "black==19.3b0" +BLACK_VERSION = "black==19.10b0" BLACK_PATHS = ["docs", "google", "tests", "noxfile.py", "setup.py"] -DEFAULT_PYTHON_VERSION = "3.7" -SYSTEM_TEST_PYTHON_VERSIONS = ["2.7", "3.7"] +DEFAULT_PYTHON_VERSION = "3.8" +SYSTEM_TEST_PYTHON_VERSIONS = ["2.7", "3.8"] UNIT_TEST_PYTHON_VERSIONS = ["2.7", "3.5", "3.6", "3.7", "3.8"] @@ -39,7 +39,9 @@ def lint(session): serious code quality issues. """ session.install("flake8", BLACK_VERSION) - session.run("black", "--check", *BLACK_PATHS) + session.run( + "black", "--check", *BLACK_PATHS, + ) session.run("flake8", "google", "tests") @@ -54,7 +56,9 @@ def blacken(session): check the state of the `gcp_ubuntu_config` we use for that Kokoro run. """ session.install(BLACK_VERSION) - session.run("black", *BLACK_PATHS) + session.run( + "black", *BLACK_PATHS, + ) @nox.session(python=DEFAULT_PYTHON_VERSION) @@ -111,7 +115,9 @@ def system(session): # Install all test dependencies, then install this package into the # virtualenv's dist-packages. - session.install("mock", "pytest", "google-cloud-testutils") + session.install( + "mock", "pytest", "google-cloud-testutils", + ) session.install("-e", ".") # Run py.test against the system tests. diff --git a/packages/google-cloud-videointelligence/synth.metadata b/packages/google-cloud-videointelligence/synth.metadata index 998e59f98282..a72e862eb475 100644 --- a/packages/google-cloud-videointelligence/synth.metadata +++ b/packages/google-cloud-videointelligence/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/python-videointelligence.git", - "sha": "20ad69cefb473565d5065e4b118398c675cd5f79" + "sha": "e9388452b9a953f1f297b78ee19bcab9204132f7" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "cd522c3b4dde821766d95c80ae5aeb43d7a41170" + "sha": "cf2eff09d0f5319a4dc5cdce2b6356d85af4a798" } } ],