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 (
@@ -815,7 +815,7 @@ def pre_get_location(
815815 self ,
816816 request : locations_pb2 .GetLocationRequest ,
817817 metadata : Sequence [Tuple [str , str ]],
818- ) -> locations_pb2 .Location :
818+ ) -> Tuple [ locations_pb2 .GetLocationRequest , Sequence [ Tuple [ str , str ]]] :
819819 """Pre-rpc interceptor for get_location
820820
821821 Override in a subclass to manipulate the request or metadata
@@ -824,7 +824,7 @@ def pre_get_location(
824824 return request , metadata
825825
826826 def post_get_location (
827- self , response : locations_pb2 .GetLocationRequest
827+ self , response : locations_pb2 .Location
828828 ) -> locations_pb2 .Location :
829829 """Post-rpc interceptor for get_location
830830
@@ -838,7 +838,7 @@ def pre_list_locations(
838838 self ,
839839 request : locations_pb2 .ListLocationsRequest ,
840840 metadata : Sequence [Tuple [str , str ]],
841- ) -> locations_pb2 .ListLocationsResponse :
841+ ) -> Tuple [ locations_pb2 .ListLocationsRequest , Sequence [ Tuple [ str , str ]]] :
842842 """Pre-rpc interceptor for list_locations
843843
844844 Override in a subclass to manipulate the request or metadata
@@ -847,7 +847,7 @@ def pre_list_locations(
847847 return request , metadata
848848
849849 def post_list_locations (
850- self , response : locations_pb2 .ListLocationsRequest
850+ self , response : locations_pb2 .ListLocationsResponse
851851 ) -> locations_pb2 .ListLocationsResponse :
852852 """Post-rpc interceptor for list_locations
853853
@@ -861,17 +861,15 @@ def pre_cancel_operation(
861861 self ,
862862 request : operations_pb2 .CancelOperationRequest ,
863863 metadata : Sequence [Tuple [str , str ]],
864- ) -> None :
864+ ) -> Tuple [ operations_pb2 . CancelOperationRequest , Sequence [ Tuple [ str , str ]]] :
865865 """Pre-rpc interceptor for cancel_operation
866866
867867 Override in a subclass to manipulate the request or metadata
868868 before they are sent to the DocumentProcessorService server.
869869 """
870870 return request , metadata
871871
872- def post_cancel_operation (
873- self , response : operations_pb2 .CancelOperationRequest
874- ) -> None :
872+ def post_cancel_operation (self , response : None ) -> None :
875873 """Post-rpc interceptor for cancel_operation
876874
877875 Override in a subclass to manipulate the response
@@ -884,7 +882,7 @@ def pre_get_operation(
884882 self ,
885883 request : operations_pb2 .GetOperationRequest ,
886884 metadata : Sequence [Tuple [str , str ]],
887- ) -> operations_pb2 .Operation :
885+ ) -> Tuple [ operations_pb2 .GetOperationRequest , Sequence [ Tuple [ str , str ]]] :
888886 """Pre-rpc interceptor for get_operation
889887
890888 Override in a subclass to manipulate the request or metadata
@@ -893,7 +891,7 @@ def pre_get_operation(
893891 return request , metadata
894892
895893 def post_get_operation (
896- self , response : operations_pb2 .GetOperationRequest
894+ self , response : operations_pb2 .Operation
897895 ) -> operations_pb2 .Operation :
898896 """Post-rpc interceptor for get_operation
899897
@@ -907,7 +905,7 @@ def pre_list_operations(
907905 self ,
908906 request : operations_pb2 .ListOperationsRequest ,
909907 metadata : Sequence [Tuple [str , str ]],
910- ) -> operations_pb2 .ListOperationsResponse :
908+ ) -> Tuple [ operations_pb2 .ListOperationsRequest , Sequence [ Tuple [ str , str ]]] :
911909 """Pre-rpc interceptor for list_operations
912910
913911 Override in a subclass to manipulate the request or metadata
@@ -916,7 +914,7 @@ def pre_list_operations(
916914 return request , metadata
917915
918916 def post_list_operations (
919- self , response : operations_pb2 .ListOperationsRequest
917+ self , response : operations_pb2 .ListOperationsResponse
920918 ) -> operations_pb2 .ListOperationsResponse :
921919 """Post-rpc interceptor for list_operations
922920
@@ -1094,7 +1092,7 @@ class _BatchProcessDocuments(DocumentProcessorServiceRestStub):
10941092 def __hash__ (self ):
10951093 return hash ("BatchProcessDocuments" )
10961094
1097- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
1095+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
10981096
10991097 @classmethod
11001098 def _get_unset_required_fields (cls , message_dict ):
@@ -1199,7 +1197,7 @@ class _CreateProcessor(DocumentProcessorServiceRestStub):
11991197 def __hash__ (self ):
12001198 return hash ("CreateProcessor" )
12011199
1202- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
1200+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
12031201
12041202 @classmethod
12051203 def _get_unset_required_fields (cls , message_dict ):
@@ -1305,7 +1303,7 @@ class _DeleteProcessor(DocumentProcessorServiceRestStub):
13051303 def __hash__ (self ):
13061304 return hash ("DeleteProcessor" )
13071305
1308- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
1306+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
13091307
13101308 @classmethod
13111309 def _get_unset_required_fields (cls , message_dict ):
@@ -1396,7 +1394,7 @@ class _DeleteProcessorVersion(DocumentProcessorServiceRestStub):
13961394 def __hash__ (self ):
13971395 return hash ("DeleteProcessorVersion" )
13981396
1399- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
1397+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
14001398
14011399 @classmethod
14021400 def _get_unset_required_fields (cls , message_dict ):
@@ -1489,7 +1487,7 @@ class _DeployProcessorVersion(DocumentProcessorServiceRestStub):
14891487 def __hash__ (self ):
14901488 return hash ("DeployProcessorVersion" )
14911489
1492- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
1490+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
14931491
14941492 @classmethod
14951493 def _get_unset_required_fields (cls , message_dict ):
@@ -1591,7 +1589,7 @@ class _DisableProcessor(DocumentProcessorServiceRestStub):
15911589 def __hash__ (self ):
15921590 return hash ("DisableProcessor" )
15931591
1594- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
1592+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
15951593
15961594 @classmethod
15971595 def _get_unset_required_fields (cls , message_dict ):
@@ -1691,7 +1689,7 @@ class _EnableProcessor(DocumentProcessorServiceRestStub):
16911689 def __hash__ (self ):
16921690 return hash ("EnableProcessor" )
16931691
1694- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
1692+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
16951693
16961694 @classmethod
16971695 def _get_unset_required_fields (cls , message_dict ):
@@ -1791,7 +1789,7 @@ class _EvaluateProcessorVersion(DocumentProcessorServiceRestStub):
17911789 def __hash__ (self ):
17921790 return hash ("EvaluateProcessorVersion" )
17931791
1794- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
1792+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
17951793
17961794 @classmethod
17971795 def _get_unset_required_fields (cls , message_dict ):
@@ -1894,7 +1892,7 @@ class _FetchProcessorTypes(DocumentProcessorServiceRestStub):
18941892 def __hash__ (self ):
18951893 return hash ("FetchProcessorTypes" )
18961894
1897- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
1895+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
18981896
18991897 @classmethod
19001898 def _get_unset_required_fields (cls , message_dict ):
@@ -1988,7 +1986,7 @@ class _GetEvaluation(DocumentProcessorServiceRestStub):
19881986 def __hash__ (self ):
19891987 return hash ("GetEvaluation" )
19901988
1991- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
1989+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
19921990
19931991 @classmethod
19941992 def _get_unset_required_fields (cls , message_dict ):
@@ -2076,7 +2074,7 @@ class _GetProcessor(DocumentProcessorServiceRestStub):
20762074 def __hash__ (self ):
20772075 return hash ("GetProcessor" )
20782076
2079- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
2077+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
20802078
20812079 @classmethod
20822080 def _get_unset_required_fields (cls , message_dict ):
@@ -2166,7 +2164,7 @@ class _GetProcessorType(DocumentProcessorServiceRestStub):
21662164 def __hash__ (self ):
21672165 return hash ("GetProcessorType" )
21682166
2169- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
2167+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
21702168
21712169 @classmethod
21722170 def _get_unset_required_fields (cls , message_dict ):
@@ -2258,7 +2256,7 @@ class _GetProcessorVersion(DocumentProcessorServiceRestStub):
22582256 def __hash__ (self ):
22592257 return hash ("GetProcessorVersion" )
22602258
2261- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
2259+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
22622260
22632261 @classmethod
22642262 def _get_unset_required_fields (cls , message_dict ):
@@ -2359,7 +2357,7 @@ class _ListEvaluations(DocumentProcessorServiceRestStub):
23592357 def __hash__ (self ):
23602358 return hash ("ListEvaluations" )
23612359
2362- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
2360+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
23632361
23642362 @classmethod
23652363 def _get_unset_required_fields (cls , message_dict ):
@@ -2449,7 +2447,7 @@ class _ListProcessors(DocumentProcessorServiceRestStub):
24492447 def __hash__ (self ):
24502448 return hash ("ListProcessors" )
24512449
2452- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
2450+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
24532451
24542452 @classmethod
24552453 def _get_unset_required_fields (cls , message_dict ):
@@ -2537,7 +2535,7 @@ class _ListProcessorTypes(DocumentProcessorServiceRestStub):
25372535 def __hash__ (self ):
25382536 return hash ("ListProcessorTypes" )
25392537
2540- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
2538+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
25412539
25422540 @classmethod
25432541 def _get_unset_required_fields (cls , message_dict ):
@@ -2631,7 +2629,7 @@ class _ListProcessorVersions(DocumentProcessorServiceRestStub):
26312629 def __hash__ (self ):
26322630 return hash ("ListProcessorVersions" )
26332631
2634- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
2632+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
26352633
26362634 @classmethod
26372635 def _get_unset_required_fields (cls , message_dict ):
@@ -2724,7 +2722,7 @@ class _ProcessDocument(DocumentProcessorServiceRestStub):
27242722 def __hash__ (self ):
27252723 return hash ("ProcessDocument" )
27262724
2727- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
2725+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
27282726
27292727 @classmethod
27302728 def _get_unset_required_fields (cls , message_dict ):
@@ -2830,7 +2828,7 @@ class _ReviewDocument(DocumentProcessorServiceRestStub):
28302828 def __hash__ (self ):
28312829 return hash ("ReviewDocument" )
28322830
2833- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
2831+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
28342832
28352833 @classmethod
28362834 def _get_unset_required_fields (cls , message_dict ):
@@ -2928,7 +2926,7 @@ class _SetDefaultProcessorVersion(DocumentProcessorServiceRestStub):
29282926 def __hash__ (self ):
29292927 return hash ("SetDefaultProcessorVersion" )
29302928
2931- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
2929+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
29322930
29332931 @classmethod
29342932 def _get_unset_required_fields (cls , message_dict ):
@@ -3031,7 +3029,7 @@ class _TrainProcessorVersion(DocumentProcessorServiceRestStub):
30313029 def __hash__ (self ):
30323030 return hash ("TrainProcessorVersion" )
30333031
3034- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
3032+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
30353033
30363034 @classmethod
30373035 def _get_unset_required_fields (cls , message_dict ):
@@ -3133,7 +3131,7 @@ class _UndeployProcessorVersion(DocumentProcessorServiceRestStub):
31333131 def __hash__ (self ):
31343132 return hash ("UndeployProcessorVersion" )
31353133
3136- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
3134+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
31373135
31383136 @classmethod
31393137 def _get_unset_required_fields (cls , message_dict ):
0 commit comments