1717import dataclasses
1818import json # type: ignore
1919import re
20- from typing import Callable , Dict , List , Optional , Sequence , Tuple , Union
20+ from typing import Any , Callable , Dict , List , Optional , Sequence , Tuple , Union
2121import warnings
2222
2323from google .api_core import (
@@ -258,7 +258,7 @@ def pre_get_location(
258258 self ,
259259 request : locations_pb2 .GetLocationRequest ,
260260 metadata : Sequence [Tuple [str , str ]],
261- ) -> locations_pb2 .Location :
261+ ) -> Tuple [ locations_pb2 .GetLocationRequest , Sequence [ Tuple [ str , str ]]] :
262262 """Pre-rpc interceptor for get_location
263263
264264 Override in a subclass to manipulate the request or metadata
@@ -267,7 +267,7 @@ def pre_get_location(
267267 return request , metadata
268268
269269 def post_get_location (
270- self , response : locations_pb2 .GetLocationRequest
270+ self , response : locations_pb2 .Location
271271 ) -> locations_pb2 .Location :
272272 """Post-rpc interceptor for get_location
273273
@@ -281,7 +281,7 @@ def pre_list_locations(
281281 self ,
282282 request : locations_pb2 .ListLocationsRequest ,
283283 metadata : Sequence [Tuple [str , str ]],
284- ) -> locations_pb2 .ListLocationsResponse :
284+ ) -> Tuple [ locations_pb2 .ListLocationsRequest , Sequence [ Tuple [ str , str ]]] :
285285 """Pre-rpc interceptor for list_locations
286286
287287 Override in a subclass to manipulate the request or metadata
@@ -290,7 +290,7 @@ def pre_list_locations(
290290 return request , metadata
291291
292292 def post_list_locations (
293- self , response : locations_pb2 .ListLocationsRequest
293+ self , response : locations_pb2 .ListLocationsResponse
294294 ) -> locations_pb2 .ListLocationsResponse :
295295 """Post-rpc interceptor for list_locations
296296
@@ -304,17 +304,15 @@ def pre_get_iam_policy(
304304 self ,
305305 request : iam_policy_pb2 .GetIamPolicyRequest ,
306306 metadata : Sequence [Tuple [str , str ]],
307- ) -> policy_pb2 . Policy :
307+ ) -> Tuple [ iam_policy_pb2 . GetIamPolicyRequest , Sequence [ Tuple [ str , str ]]] :
308308 """Pre-rpc interceptor for get_iam_policy
309309
310310 Override in a subclass to manipulate the request or metadata
311311 before they are sent to the ClientConnectorServicesService server.
312312 """
313313 return request , metadata
314314
315- def post_get_iam_policy (
316- self , response : iam_policy_pb2 .GetIamPolicyRequest
317- ) -> policy_pb2 .Policy :
315+ def post_get_iam_policy (self , response : policy_pb2 .Policy ) -> policy_pb2 .Policy :
318316 """Post-rpc interceptor for get_iam_policy
319317
320318 Override in a subclass to manipulate the response
@@ -327,17 +325,15 @@ def pre_set_iam_policy(
327325 self ,
328326 request : iam_policy_pb2 .SetIamPolicyRequest ,
329327 metadata : Sequence [Tuple [str , str ]],
330- ) -> policy_pb2 . Policy :
328+ ) -> Tuple [ iam_policy_pb2 . SetIamPolicyRequest , Sequence [ Tuple [ str , str ]]] :
331329 """Pre-rpc interceptor for set_iam_policy
332330
333331 Override in a subclass to manipulate the request or metadata
334332 before they are sent to the ClientConnectorServicesService server.
335333 """
336334 return request , metadata
337335
338- def post_set_iam_policy (
339- self , response : iam_policy_pb2 .SetIamPolicyRequest
340- ) -> policy_pb2 .Policy :
336+ def post_set_iam_policy (self , response : policy_pb2 .Policy ) -> policy_pb2 .Policy :
341337 """Post-rpc interceptor for set_iam_policy
342338
343339 Override in a subclass to manipulate the response
@@ -350,7 +346,7 @@ def pre_test_iam_permissions(
350346 self ,
351347 request : iam_policy_pb2 .TestIamPermissionsRequest ,
352348 metadata : Sequence [Tuple [str , str ]],
353- ) -> iam_policy_pb2 .TestIamPermissionsResponse :
349+ ) -> Tuple [ iam_policy_pb2 .TestIamPermissionsRequest , Sequence [ Tuple [ str , str ]]] :
354350 """Pre-rpc interceptor for test_iam_permissions
355351
356352 Override in a subclass to manipulate the request or metadata
@@ -359,7 +355,7 @@ def pre_test_iam_permissions(
359355 return request , metadata
360356
361357 def post_test_iam_permissions (
362- self , response : iam_policy_pb2 .TestIamPermissionsRequest
358+ self , response : iam_policy_pb2 .TestIamPermissionsResponse
363359 ) -> iam_policy_pb2 .TestIamPermissionsResponse :
364360 """Post-rpc interceptor for test_iam_permissions
365361
@@ -373,17 +369,15 @@ def pre_cancel_operation(
373369 self ,
374370 request : operations_pb2 .CancelOperationRequest ,
375371 metadata : Sequence [Tuple [str , str ]],
376- ) -> None :
372+ ) -> Tuple [ operations_pb2 . CancelOperationRequest , Sequence [ Tuple [ str , str ]]] :
377373 """Pre-rpc interceptor for cancel_operation
378374
379375 Override in a subclass to manipulate the request or metadata
380376 before they are sent to the ClientConnectorServicesService server.
381377 """
382378 return request , metadata
383379
384- def post_cancel_operation (
385- self , response : operations_pb2 .CancelOperationRequest
386- ) -> None :
380+ def post_cancel_operation (self , response : None ) -> None :
387381 """Post-rpc interceptor for cancel_operation
388382
389383 Override in a subclass to manipulate the response
@@ -396,17 +390,15 @@ def pre_delete_operation(
396390 self ,
397391 request : operations_pb2 .DeleteOperationRequest ,
398392 metadata : Sequence [Tuple [str , str ]],
399- ) -> None :
393+ ) -> Tuple [ operations_pb2 . DeleteOperationRequest , Sequence [ Tuple [ str , str ]]] :
400394 """Pre-rpc interceptor for delete_operation
401395
402396 Override in a subclass to manipulate the request or metadata
403397 before they are sent to the ClientConnectorServicesService server.
404398 """
405399 return request , metadata
406400
407- def post_delete_operation (
408- self , response : operations_pb2 .DeleteOperationRequest
409- ) -> None :
401+ def post_delete_operation (self , response : None ) -> None :
410402 """Post-rpc interceptor for delete_operation
411403
412404 Override in a subclass to manipulate the response
@@ -419,7 +411,7 @@ def pre_get_operation(
419411 self ,
420412 request : operations_pb2 .GetOperationRequest ,
421413 metadata : Sequence [Tuple [str , str ]],
422- ) -> operations_pb2 .Operation :
414+ ) -> Tuple [ operations_pb2 .GetOperationRequest , Sequence [ Tuple [ str , str ]]] :
423415 """Pre-rpc interceptor for get_operation
424416
425417 Override in a subclass to manipulate the request or metadata
@@ -428,7 +420,7 @@ def pre_get_operation(
428420 return request , metadata
429421
430422 def post_get_operation (
431- self , response : operations_pb2 .GetOperationRequest
423+ self , response : operations_pb2 .Operation
432424 ) -> operations_pb2 .Operation :
433425 """Post-rpc interceptor for get_operation
434426
@@ -442,7 +434,7 @@ def pre_list_operations(
442434 self ,
443435 request : operations_pb2 .ListOperationsRequest ,
444436 metadata : Sequence [Tuple [str , str ]],
445- ) -> operations_pb2 .ListOperationsResponse :
437+ ) -> Tuple [ operations_pb2 .ListOperationsRequest , Sequence [ Tuple [ str , str ]]] :
446438 """Pre-rpc interceptor for list_operations
447439
448440 Override in a subclass to manipulate the request or metadata
@@ -451,7 +443,7 @@ def pre_list_operations(
451443 return request , metadata
452444
453445 def post_list_operations (
454- self , response : operations_pb2 .ListOperationsRequest
446+ self , response : operations_pb2 .ListOperationsResponse
455447 ) -> operations_pb2 .ListOperationsResponse :
456448 """Post-rpc interceptor for list_operations
457449
@@ -630,7 +622,7 @@ class _CreateClientConnectorService(ClientConnectorServicesServiceRestStub):
630622 def __hash__ (self ):
631623 return hash ("CreateClientConnectorService" )
632624
633- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
625+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
634626
635627 @classmethod
636628 def _get_unset_required_fields (cls , message_dict ):
@@ -733,7 +725,7 @@ class _DeleteClientConnectorService(ClientConnectorServicesServiceRestStub):
733725 def __hash__ (self ):
734726 return hash ("DeleteClientConnectorService" )
735727
736- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
728+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
737729
738730 @classmethod
739731 def _get_unset_required_fields (cls , message_dict ):
@@ -827,7 +819,7 @@ class _GetClientConnectorService(ClientConnectorServicesServiceRestStub):
827819 def __hash__ (self ):
828820 return hash ("GetClientConnectorService" )
829821
830- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
822+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
831823
832824 @classmethod
833825 def _get_unset_required_fields (cls , message_dict ):
@@ -924,7 +916,7 @@ class _ListClientConnectorServices(ClientConnectorServicesServiceRestStub):
924916 def __hash__ (self ):
925917 return hash ("ListClientConnectorServices" )
926918
927- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
919+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
928920
929921 @classmethod
930922 def _get_unset_required_fields (cls , message_dict ):
@@ -1025,7 +1017,7 @@ class _UpdateClientConnectorService(ClientConnectorServicesServiceRestStub):
10251017 def __hash__ (self ):
10261018 return hash ("UpdateClientConnectorService" )
10271019
1028- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {
1020+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {
10291021 "updateMask" : {},
10301022 }
10311023
0 commit comments