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 gapic_v1 , path_template , rest_helpers , rest_streaming
@@ -496,7 +496,7 @@ def pre_get_location(
496496 self ,
497497 request : locations_pb2 .GetLocationRequest ,
498498 metadata : Sequence [Tuple [str , str ]],
499- ) -> locations_pb2 .Location :
499+ ) -> Tuple [ locations_pb2 .GetLocationRequest , Sequence [ Tuple [ str , str ]]] :
500500 """Pre-rpc interceptor for get_location
501501
502502 Override in a subclass to manipulate the request or metadata
@@ -505,7 +505,7 @@ def pre_get_location(
505505 return request , metadata
506506
507507 def post_get_location (
508- self , response : locations_pb2 .GetLocationRequest
508+ self , response : locations_pb2 .Location
509509 ) -> locations_pb2 .Location :
510510 """Post-rpc interceptor for get_location
511511
@@ -519,7 +519,7 @@ def pre_list_locations(
519519 self ,
520520 request : locations_pb2 .ListLocationsRequest ,
521521 metadata : Sequence [Tuple [str , str ]],
522- ) -> locations_pb2 .ListLocationsResponse :
522+ ) -> Tuple [ locations_pb2 .ListLocationsRequest , Sequence [ Tuple [ str , str ]]] :
523523 """Pre-rpc interceptor for list_locations
524524
525525 Override in a subclass to manipulate the request or metadata
@@ -528,7 +528,7 @@ def pre_list_locations(
528528 return request , metadata
529529
530530 def post_list_locations (
531- self , response : locations_pb2 .ListLocationsRequest
531+ self , response : locations_pb2 .ListLocationsResponse
532532 ) -> locations_pb2 .ListLocationsResponse :
533533 """Post-rpc interceptor for list_locations
534534
@@ -640,7 +640,7 @@ class _CheckValidCreds(DataTransferServiceRestStub):
640640 def __hash__ (self ):
641641 return hash ("CheckValidCreds" )
642642
643- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
643+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
644644
645645 @classmethod
646646 def _get_unset_required_fields (cls , message_dict ):
@@ -755,7 +755,7 @@ class _CreateTransferConfig(DataTransferServiceRestStub):
755755 def __hash__ (self ):
756756 return hash ("CreateTransferConfig" )
757757
758- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
758+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
759759
760760 @classmethod
761761 def _get_unset_required_fields (cls , message_dict ):
@@ -875,7 +875,7 @@ class _DeleteTransferConfig(DataTransferServiceRestStub):
875875 def __hash__ (self ):
876876 return hash ("DeleteTransferConfig" )
877877
878- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
878+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
879879
880880 @classmethod
881881 def _get_unset_required_fields (cls , message_dict ):
@@ -959,7 +959,7 @@ class _DeleteTransferRun(DataTransferServiceRestStub):
959959 def __hash__ (self ):
960960 return hash ("DeleteTransferRun" )
961961
962- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
962+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
963963
964964 @classmethod
965965 def _get_unset_required_fields (cls , message_dict ):
@@ -1122,7 +1122,7 @@ class _GetDataSource(DataTransferServiceRestStub):
11221122 def __hash__ (self ):
11231123 return hash ("GetDataSource" )
11241124
1125- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
1125+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
11261126
11271127 @classmethod
11281128 def _get_unset_required_fields (cls , message_dict ):
@@ -1214,7 +1214,7 @@ class _GetTransferConfig(DataTransferServiceRestStub):
12141214 def __hash__ (self ):
12151215 return hash ("GetTransferConfig" )
12161216
1217- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
1217+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
12181218
12191219 @classmethod
12201220 def _get_unset_required_fields (cls , message_dict ):
@@ -1315,7 +1315,7 @@ class _GetTransferRun(DataTransferServiceRestStub):
13151315 def __hash__ (self ):
13161316 return hash ("GetTransferRun" )
13171317
1318- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
1318+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
13191319
13201320 @classmethod
13211321 def _get_unset_required_fields (cls , message_dict ):
@@ -1409,7 +1409,7 @@ class _ListDataSources(DataTransferServiceRestStub):
14091409 def __hash__ (self ):
14101410 return hash ("ListDataSources" )
14111411
1412- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
1412+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
14131413
14141414 @classmethod
14151415 def _get_unset_required_fields (cls , message_dict ):
@@ -1506,7 +1506,7 @@ class _ListTransferConfigs(DataTransferServiceRestStub):
15061506 def __hash__ (self ):
15071507 return hash ("ListTransferConfigs" )
15081508
1509- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
1509+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
15101510
15111511 @classmethod
15121512 def _get_unset_required_fields (cls , message_dict ):
@@ -1602,7 +1602,7 @@ class _ListTransferLogs(DataTransferServiceRestStub):
16021602 def __hash__ (self ):
16031603 return hash ("ListTransferLogs" )
16041604
1605- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
1605+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
16061606
16071607 @classmethod
16081608 def _get_unset_required_fields (cls , message_dict ):
@@ -1699,7 +1699,7 @@ class _ListTransferRuns(DataTransferServiceRestStub):
16991699 def __hash__ (self ):
17001700 return hash ("ListTransferRuns" )
17011701
1702- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
1702+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
17031703
17041704 @classmethod
17051705 def _get_unset_required_fields (cls , message_dict ):
@@ -1793,7 +1793,7 @@ class _ScheduleTransferRuns(DataTransferServiceRestStub):
17931793 def __hash__ (self ):
17941794 return hash ("ScheduleTransferRuns" )
17951795
1796- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
1796+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
17971797
17981798 @classmethod
17991799 def _get_unset_required_fields (cls , message_dict ):
@@ -1995,7 +1995,7 @@ class _UpdateTransferConfig(DataTransferServiceRestStub):
19951995 def __hash__ (self ):
19961996 return hash ("UpdateTransferConfig" )
19971997
1998- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {
1998+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {
19991999 "updateMask" : {},
20002000 }
20012001
0 commit comments