3333from requests import __version__ as requests_version
3434import dataclasses
3535import re
36- from typing import Callable , Dict , List , Optional , Sequence , Tuple , Union
36+ from typing import Any , Callable , Dict , List , Optional , Sequence , Tuple , Union
3737import warnings
3838
3939try :
@@ -438,17 +438,15 @@ def pre_cancel_operation(
438438 self ,
439439 request : operations_pb2 .CancelOperationRequest ,
440440 metadata : Sequence [Tuple [str , str ]],
441- ) -> None :
441+ ) -> Tuple [ operations_pb2 . CancelOperationRequest , Sequence [ Tuple [ str , str ]]] :
442442 """Pre-rpc interceptor for cancel_operation
443443
444444 Override in a subclass to manipulate the request or metadata
445445 before they are sent to the FirestoreAdmin server.
446446 """
447447 return request , metadata
448448
449- def post_cancel_operation (
450- self , response : operations_pb2 .CancelOperationRequest
451- ) -> None :
449+ def post_cancel_operation (self , response : None ) -> None :
452450 """Post-rpc interceptor for cancel_operation
453451
454452 Override in a subclass to manipulate the response
@@ -461,17 +459,15 @@ def pre_delete_operation(
461459 self ,
462460 request : operations_pb2 .DeleteOperationRequest ,
463461 metadata : Sequence [Tuple [str , str ]],
464- ) -> None :
462+ ) -> Tuple [ operations_pb2 . DeleteOperationRequest , Sequence [ Tuple [ str , str ]]] :
465463 """Pre-rpc interceptor for delete_operation
466464
467465 Override in a subclass to manipulate the request or metadata
468466 before they are sent to the FirestoreAdmin server.
469467 """
470468 return request , metadata
471469
472- def post_delete_operation (
473- self , response : operations_pb2 .DeleteOperationRequest
474- ) -> None :
470+ def post_delete_operation (self , response : None ) -> None :
475471 """Post-rpc interceptor for delete_operation
476472
477473 Override in a subclass to manipulate the response
@@ -484,7 +480,7 @@ def pre_get_operation(
484480 self ,
485481 request : operations_pb2 .GetOperationRequest ,
486482 metadata : Sequence [Tuple [str , str ]],
487- ) -> operations_pb2 .Operation :
483+ ) -> Tuple [ operations_pb2 .GetOperationRequest , Sequence [ Tuple [ str , str ]]] :
488484 """Pre-rpc interceptor for get_operation
489485
490486 Override in a subclass to manipulate the request or metadata
@@ -493,7 +489,7 @@ def pre_get_operation(
493489 return request , metadata
494490
495491 def post_get_operation (
496- self , response : operations_pb2 .GetOperationRequest
492+ self , response : operations_pb2 .Operation
497493 ) -> operations_pb2 .Operation :
498494 """Post-rpc interceptor for get_operation
499495
@@ -507,7 +503,7 @@ def pre_list_operations(
507503 self ,
508504 request : operations_pb2 .ListOperationsRequest ,
509505 metadata : Sequence [Tuple [str , str ]],
510- ) -> operations_pb2 .ListOperationsResponse :
506+ ) -> Tuple [ operations_pb2 .ListOperationsRequest , Sequence [ Tuple [ str , str ]]] :
511507 """Pre-rpc interceptor for list_operations
512508
513509 Override in a subclass to manipulate the request or metadata
@@ -516,7 +512,7 @@ def pre_list_operations(
516512 return request , metadata
517513
518514 def post_list_operations (
519- self , response : operations_pb2 .ListOperationsRequest
515+ self , response : operations_pb2 .ListOperationsResponse
520516 ) -> operations_pb2 .ListOperationsResponse :
521517 """Post-rpc interceptor for list_operations
522518
@@ -711,7 +707,7 @@ class _CreateIndex(FirestoreAdminRestStub):
711707 def __hash__ (self ):
712708 return hash ("CreateIndex" )
713709
714- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
710+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
715711
716712 @classmethod
717713 def _get_unset_required_fields (cls , message_dict ):
@@ -809,7 +805,7 @@ class _DeleteIndex(FirestoreAdminRestStub):
809805 def __hash__ (self ):
810806 return hash ("DeleteIndex" )
811807
812- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
808+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
813809
814810 @classmethod
815811 def _get_unset_required_fields (cls , message_dict ):
@@ -885,7 +881,7 @@ class _ExportDocuments(FirestoreAdminRestStub):
885881 def __hash__ (self ):
886882 return hash ("ExportDocuments" )
887883
888- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
884+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
889885
890886 @classmethod
891887 def _get_unset_required_fields (cls , message_dict ):
@@ -985,7 +981,7 @@ class _GetDatabase(FirestoreAdminRestStub):
985981 def __hash__ (self ):
986982 return hash ("GetDatabase" )
987983
988- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
984+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
989985
990986 @classmethod
991987 def _get_unset_required_fields (cls , message_dict ):
@@ -1076,7 +1072,7 @@ class _GetField(FirestoreAdminRestStub):
10761072 def __hash__ (self ):
10771073 return hash ("GetField" )
10781074
1079- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
1075+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
10801076
10811077 @classmethod
10821078 def _get_unset_required_fields (cls , message_dict ):
@@ -1169,7 +1165,7 @@ class _GetIndex(FirestoreAdminRestStub):
11691165 def __hash__ (self ):
11701166 return hash ("GetIndex" )
11711167
1172- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
1168+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
11731169
11741170 @classmethod
11751171 def _get_unset_required_fields (cls , message_dict ):
@@ -1260,7 +1256,7 @@ class _ImportDocuments(FirestoreAdminRestStub):
12601256 def __hash__ (self ):
12611257 return hash ("ImportDocuments" )
12621258
1263- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
1259+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
12641260
12651261 @classmethod
12661262 def _get_unset_required_fields (cls , message_dict ):
@@ -1360,7 +1356,7 @@ class _ListDatabases(FirestoreAdminRestStub):
13601356 def __hash__ (self ):
13611357 return hash ("ListDatabases" )
13621358
1363- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
1359+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
13641360
13651361 @classmethod
13661362 def _get_unset_required_fields (cls , message_dict ):
@@ -1449,7 +1445,7 @@ class _ListFields(FirestoreAdminRestStub):
14491445 def __hash__ (self ):
14501446 return hash ("ListFields" )
14511447
1452- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
1448+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
14531449
14541450 @classmethod
14551451 def _get_unset_required_fields (cls , message_dict ):
@@ -1539,7 +1535,7 @@ class _ListIndexes(FirestoreAdminRestStub):
15391535 def __hash__ (self ):
15401536 return hash ("ListIndexes" )
15411537
1542- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
1538+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
15431539
15441540 @classmethod
15451541 def _get_unset_required_fields (cls , message_dict ):
@@ -1629,7 +1625,7 @@ class _UpdateDatabase(FirestoreAdminRestStub):
16291625 def __hash__ (self ):
16301626 return hash ("UpdateDatabase" )
16311627
1632- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
1628+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
16331629
16341630 @classmethod
16351631 def _get_unset_required_fields (cls , message_dict ):
@@ -1727,7 +1723,7 @@ class _UpdateField(FirestoreAdminRestStub):
17271723 def __hash__ (self ):
17281724 return hash ("UpdateField" )
17291725
1730- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
1726+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
17311727
17321728 @classmethod
17331729 def _get_unset_required_fields (cls , message_dict ):
0 commit comments