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 (
@@ -312,7 +312,7 @@ def pre_get_operation(
312312 self ,
313313 request : operations_pb2 .GetOperationRequest ,
314314 metadata : Sequence [Tuple [str , str ]],
315- ) -> operations_pb2 .Operation :
315+ ) -> Tuple [ operations_pb2 .GetOperationRequest , Sequence [ Tuple [ str , str ]]] :
316316 """Pre-rpc interceptor for get_operation
317317
318318 Override in a subclass to manipulate the request or metadata
@@ -321,7 +321,7 @@ def pre_get_operation(
321321 return request , metadata
322322
323323 def post_get_operation (
324- self , response : operations_pb2 .GetOperationRequest
324+ self , response : operations_pb2 .Operation
325325 ) -> operations_pb2 .Operation :
326326 """Post-rpc interceptor for get_operation
327327
@@ -467,7 +467,7 @@ class _CreateKey(ApiKeysRestStub):
467467 def __hash__ (self ):
468468 return hash ("CreateKey" )
469469
470- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
470+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
471471
472472 @classmethod
473473 def _get_unset_required_fields (cls , message_dict ):
@@ -563,7 +563,7 @@ class _DeleteKey(ApiKeysRestStub):
563563 def __hash__ (self ):
564564 return hash ("DeleteKey" )
565565
566- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
566+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
567567
568568 @classmethod
569569 def _get_unset_required_fields (cls , message_dict ):
@@ -650,7 +650,7 @@ class _GetKey(ApiKeysRestStub):
650650 def __hash__ (self ):
651651 return hash ("GetKey" )
652652
653- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
653+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
654654
655655 @classmethod
656656 def _get_unset_required_fields (cls , message_dict ):
@@ -738,7 +738,7 @@ class _GetKeyString(ApiKeysRestStub):
738738 def __hash__ (self ):
739739 return hash ("GetKeyString" )
740740
741- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
741+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
742742
743743 @classmethod
744744 def _get_unset_required_fields (cls , message_dict ):
@@ -824,7 +824,7 @@ class _ListKeys(ApiKeysRestStub):
824824 def __hash__ (self ):
825825 return hash ("ListKeys" )
826826
827- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
827+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
828828
829829 @classmethod
830830 def _get_unset_required_fields (cls , message_dict ):
@@ -910,7 +910,7 @@ class _LookupKey(ApiKeysRestStub):
910910 def __hash__ (self ):
911911 return hash ("LookupKey" )
912912
913- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {
913+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {
914914 "keyString" : "" ,
915915 }
916916
@@ -998,7 +998,7 @@ class _UndeleteKey(ApiKeysRestStub):
998998 def __hash__ (self ):
999999 return hash ("UndeleteKey" )
10001000
1001- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
1001+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
10021002
10031003 @classmethod
10041004 def _get_unset_required_fields (cls , message_dict ):
@@ -1094,7 +1094,7 @@ class _UpdateKey(ApiKeysRestStub):
10941094 def __hash__ (self ):
10951095 return hash ("UpdateKey" )
10961096
1097- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
1097+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
10981098
10991099 @classmethod
11001100 def _get_unset_required_fields (cls , message_dict ):
0 commit comments