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 (
@@ -1192,17 +1192,15 @@ def pre_cancel_operation(
11921192 self ,
11931193 request : operations_pb2 .CancelOperationRequest ,
11941194 metadata : Sequence [Tuple [str , str ]],
1195- ) -> None :
1195+ ) -> Tuple [ operations_pb2 . CancelOperationRequest , Sequence [ Tuple [ str , str ]]] :
11961196 """Pre-rpc interceptor for cancel_operation
11971197
11981198 Override in a subclass to manipulate the request or metadata
11991199 before they are sent to the ContactCenterInsights server.
12001200 """
12011201 return request , metadata
12021202
1203- def post_cancel_operation (
1204- self , response : operations_pb2 .CancelOperationRequest
1205- ) -> None :
1203+ def post_cancel_operation (self , response : None ) -> None :
12061204 """Post-rpc interceptor for cancel_operation
12071205
12081206 Override in a subclass to manipulate the response
@@ -1215,7 +1213,7 @@ def pre_get_operation(
12151213 self ,
12161214 request : operations_pb2 .GetOperationRequest ,
12171215 metadata : Sequence [Tuple [str , str ]],
1218- ) -> operations_pb2 .Operation :
1216+ ) -> Tuple [ operations_pb2 .GetOperationRequest , Sequence [ Tuple [ str , str ]]] :
12191217 """Pre-rpc interceptor for get_operation
12201218
12211219 Override in a subclass to manipulate the request or metadata
@@ -1224,7 +1222,7 @@ def pre_get_operation(
12241222 return request , metadata
12251223
12261224 def post_get_operation (
1227- self , response : operations_pb2 .GetOperationRequest
1225+ self , response : operations_pb2 .Operation
12281226 ) -> operations_pb2 .Operation :
12291227 """Post-rpc interceptor for get_operation
12301228
@@ -1238,7 +1236,7 @@ def pre_list_operations(
12381236 self ,
12391237 request : operations_pb2 .ListOperationsRequest ,
12401238 metadata : Sequence [Tuple [str , str ]],
1241- ) -> operations_pb2 .ListOperationsResponse :
1239+ ) -> Tuple [ operations_pb2 .ListOperationsRequest , Sequence [ Tuple [ str , str ]]] :
12421240 """Pre-rpc interceptor for list_operations
12431241
12441242 Override in a subclass to manipulate the request or metadata
@@ -1247,7 +1245,7 @@ def pre_list_operations(
12471245 return request , metadata
12481246
12491247 def post_list_operations (
1250- self , response : operations_pb2 .ListOperationsRequest
1248+ self , response : operations_pb2 .ListOperationsResponse
12511249 ) -> operations_pb2 .ListOperationsResponse :
12521250 """Post-rpc interceptor for list_operations
12531251
@@ -1406,7 +1404,7 @@ class _BulkAnalyzeConversations(ContactCenterInsightsRestStub):
14061404 def __hash__ (self ):
14071405 return hash ("BulkAnalyzeConversations" )
14081406
1409- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
1407+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
14101408
14111409 @classmethod
14121410 def _get_unset_required_fields (cls , message_dict ):
@@ -1509,7 +1507,7 @@ class _CalculateIssueModelStats(ContactCenterInsightsRestStub):
15091507 def __hash__ (self ):
15101508 return hash ("CalculateIssueModelStats" )
15111509
1512- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
1510+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
15131511
15141512 @classmethod
15151513 def _get_unset_required_fields (cls , message_dict ):
@@ -1604,7 +1602,7 @@ class _CalculateStats(ContactCenterInsightsRestStub):
16041602 def __hash__ (self ):
16051603 return hash ("CalculateStats" )
16061604
1607- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
1605+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
16081606
16091607 @classmethod
16101608 def _get_unset_required_fields (cls , message_dict ):
@@ -1694,7 +1692,7 @@ class _CreateAnalysis(ContactCenterInsightsRestStub):
16941692 def __hash__ (self ):
16951693 return hash ("CreateAnalysis" )
16961694
1697- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
1695+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
16981696
16991697 @classmethod
17001698 def _get_unset_required_fields (cls , message_dict ):
@@ -1790,7 +1788,7 @@ class _CreateConversation(ContactCenterInsightsRestStub):
17901788 def __hash__ (self ):
17911789 return hash ("CreateConversation" )
17921790
1793- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
1791+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
17941792
17951793 @classmethod
17961794 def _get_unset_required_fields (cls , message_dict ):
@@ -1887,7 +1885,7 @@ class _CreateIssueModel(ContactCenterInsightsRestStub):
18871885 def __hash__ (self ):
18881886 return hash ("CreateIssueModel" )
18891887
1890- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
1888+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
18911889
18921890 @classmethod
18931891 def _get_unset_required_fields (cls , message_dict ):
@@ -1985,7 +1983,7 @@ class _CreatePhraseMatcher(ContactCenterInsightsRestStub):
19851983 def __hash__ (self ):
19861984 return hash ("CreatePhraseMatcher" )
19871985
1988- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
1986+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
19891987
19901988 @classmethod
19911989 def _get_unset_required_fields (cls , message_dict ):
@@ -2082,7 +2080,7 @@ class _CreateView(ContactCenterInsightsRestStub):
20822080 def __hash__ (self ):
20832081 return hash ("CreateView" )
20842082
2085- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
2083+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
20862084
20872085 @classmethod
20882086 def _get_unset_required_fields (cls , message_dict ):
@@ -2177,7 +2175,7 @@ class _DeleteAnalysis(ContactCenterInsightsRestStub):
21772175 def __hash__ (self ):
21782176 return hash ("DeleteAnalysis" )
21792177
2180- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
2178+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
21812179
21822180 @classmethod
21832181 def _get_unset_required_fields (cls , message_dict ):
@@ -2251,7 +2249,7 @@ class _DeleteConversation(ContactCenterInsightsRestStub):
22512249 def __hash__ (self ):
22522250 return hash ("DeleteConversation" )
22532251
2254- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
2252+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
22552253
22562254 @classmethod
22572255 def _get_unset_required_fields (cls , message_dict ):
@@ -2327,7 +2325,7 @@ class _DeleteIssue(ContactCenterInsightsRestStub):
23272325 def __hash__ (self ):
23282326 return hash ("DeleteIssue" )
23292327
2330- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
2328+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
23312329
23322330 @classmethod
23332331 def _get_unset_required_fields (cls , message_dict ):
@@ -2401,7 +2399,7 @@ class _DeleteIssueModel(ContactCenterInsightsRestStub):
24012399 def __hash__ (self ):
24022400 return hash ("DeleteIssueModel" )
24032401
2404- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
2402+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
24052403
24062404 @classmethod
24072405 def _get_unset_required_fields (cls , message_dict ):
@@ -2490,7 +2488,7 @@ class _DeletePhraseMatcher(ContactCenterInsightsRestStub):
24902488 def __hash__ (self ):
24912489 return hash ("DeletePhraseMatcher" )
24922490
2493- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
2491+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
24942492
24952493 @classmethod
24962494 def _get_unset_required_fields (cls , message_dict ):
@@ -2568,7 +2566,7 @@ class _DeleteView(ContactCenterInsightsRestStub):
25682566 def __hash__ (self ):
25692567 return hash ("DeleteView" )
25702568
2571- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
2569+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
25722570
25732571 @classmethod
25742572 def _get_unset_required_fields (cls , message_dict ):
@@ -2642,7 +2640,7 @@ class _DeployIssueModel(ContactCenterInsightsRestStub):
26422640 def __hash__ (self ):
26432641 return hash ("DeployIssueModel" )
26442642
2645- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
2643+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
26462644
26472645 @classmethod
26482646 def _get_unset_required_fields (cls , message_dict ):
@@ -2740,7 +2738,7 @@ class _ExportInsightsData(ContactCenterInsightsRestStub):
27402738 def __hash__ (self ):
27412739 return hash ("ExportInsightsData" )
27422740
2743- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
2741+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
27442742
27452743 @classmethod
27462744 def _get_unset_required_fields (cls , message_dict ):
@@ -2838,7 +2836,7 @@ class _GetAnalysis(ContactCenterInsightsRestStub):
28382836 def __hash__ (self ):
28392837 return hash ("GetAnalysis" )
28402838
2841- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
2839+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
28422840
28432841 @classmethod
28442842 def _get_unset_required_fields (cls , message_dict ):
@@ -2924,7 +2922,7 @@ class _GetConversation(ContactCenterInsightsRestStub):
29242922 def __hash__ (self ):
29252923 return hash ("GetConversation" )
29262924
2927- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
2925+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
29282926
29292927 @classmethod
29302928 def _get_unset_required_fields (cls , message_dict ):
@@ -3012,7 +3010,7 @@ class _GetIssue(ContactCenterInsightsRestStub):
30123010 def __hash__ (self ):
30133011 return hash ("GetIssue" )
30143012
3015- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
3013+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
30163014
30173015 @classmethod
30183016 def _get_unset_required_fields (cls , message_dict ):
@@ -3098,7 +3096,7 @@ class _GetIssueModel(ContactCenterInsightsRestStub):
30983096 def __hash__ (self ):
30993097 return hash ("GetIssueModel" )
31003098
3101- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
3099+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
31023100
31033101 @classmethod
31043102 def _get_unset_required_fields (cls , message_dict ):
@@ -3184,7 +3182,7 @@ class _GetPhraseMatcher(ContactCenterInsightsRestStub):
31843182 def __hash__ (self ):
31853183 return hash ("GetPhraseMatcher" )
31863184
3187- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
3185+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
31883186
31893187 @classmethod
31903188 def _get_unset_required_fields (cls , message_dict ):
@@ -3274,7 +3272,7 @@ class _GetSettings(ContactCenterInsightsRestStub):
32743272 def __hash__ (self ):
32753273 return hash ("GetSettings" )
32763274
3277- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
3275+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
32783276
32793277 @classmethod
32803278 def _get_unset_required_fields (cls , message_dict ):
@@ -3362,7 +3360,7 @@ class _GetView(ContactCenterInsightsRestStub):
33623360 def __hash__ (self ):
33633361 return hash ("GetView" )
33643362
3365- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
3363+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
33663364
33673365 @classmethod
33683366 def _get_unset_required_fields (cls , message_dict ):
@@ -3448,7 +3446,7 @@ class _IngestConversations(ContactCenterInsightsRestStub):
34483446 def __hash__ (self ):
34493447 return hash ("IngestConversations" )
34503448
3451- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
3449+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
34523450
34533451 @classmethod
34543452 def _get_unset_required_fields (cls , message_dict ):
@@ -3546,7 +3544,7 @@ class _ListAnalyses(ContactCenterInsightsRestStub):
35463544 def __hash__ (self ):
35473545 return hash ("ListAnalyses" )
35483546
3549- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
3547+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
35503548
35513549 @classmethod
35523550 def _get_unset_required_fields (cls , message_dict ):
@@ -3632,7 +3630,7 @@ class _ListConversations(ContactCenterInsightsRestStub):
36323630 def __hash__ (self ):
36333631 return hash ("ListConversations" )
36343632
3635- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
3633+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
36363634
36373635 @classmethod
36383636 def _get_unset_required_fields (cls , message_dict ):
@@ -3722,7 +3720,7 @@ class _ListIssueModels(ContactCenterInsightsRestStub):
37223720 def __hash__ (self ):
37233721 return hash ("ListIssueModels" )
37243722
3725- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
3723+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
37263724
37273725 @classmethod
37283726 def _get_unset_required_fields (cls , message_dict ):
@@ -3810,7 +3808,7 @@ class _ListIssues(ContactCenterInsightsRestStub):
38103808 def __hash__ (self ):
38113809 return hash ("ListIssues" )
38123810
3813- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
3811+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
38143812
38153813 @classmethod
38163814 def _get_unset_required_fields (cls , message_dict ):
@@ -3896,7 +3894,7 @@ class _ListPhraseMatchers(ContactCenterInsightsRestStub):
38963894 def __hash__ (self ):
38973895 return hash ("ListPhraseMatchers" )
38983896
3899- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
3897+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
39003898
39013899 @classmethod
39023900 def _get_unset_required_fields (cls , message_dict ):
@@ -3986,7 +3984,7 @@ class _ListViews(ContactCenterInsightsRestStub):
39863984 def __hash__ (self ):
39873985 return hash ("ListViews" )
39883986
3989- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
3987+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
39903988
39913989 @classmethod
39923990 def _get_unset_required_fields (cls , message_dict ):
@@ -4072,7 +4070,7 @@ class _UndeployIssueModel(ContactCenterInsightsRestStub):
40724070 def __hash__ (self ):
40734071 return hash ("UndeployIssueModel" )
40744072
4075- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
4073+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
40764074
40774075 @classmethod
40784076 def _get_unset_required_fields (cls , message_dict ):
@@ -4172,7 +4170,7 @@ class _UpdateConversation(ContactCenterInsightsRestStub):
41724170 def __hash__ (self ):
41734171 return hash ("UpdateConversation" )
41744172
4175- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
4173+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
41764174
41774175 @classmethod
41784176 def _get_unset_required_fields (cls , message_dict ):
@@ -4269,7 +4267,7 @@ class _UpdateIssue(ContactCenterInsightsRestStub):
42694267 def __hash__ (self ):
42704268 return hash ("UpdateIssue" )
42714269
4272- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
4270+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
42734271
42744272 @classmethod
42754273 def _get_unset_required_fields (cls , message_dict ):
@@ -4364,7 +4362,7 @@ class _UpdateIssueModel(ContactCenterInsightsRestStub):
43644362 def __hash__ (self ):
43654363 return hash ("UpdateIssueModel" )
43664364
4367- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
4365+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
43684366
43694367 @classmethod
43704368 def _get_unset_required_fields (cls , message_dict ):
@@ -4461,7 +4459,7 @@ class _UpdatePhraseMatcher(ContactCenterInsightsRestStub):
44614459 def __hash__ (self ):
44624460 return hash ("UpdatePhraseMatcher" )
44634461
4464- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
4462+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
44654463
44664464 @classmethod
44674465 def _get_unset_required_fields (cls , message_dict ):
@@ -4560,7 +4558,7 @@ class _UpdateSettings(ContactCenterInsightsRestStub):
45604558 def __hash__ (self ):
45614559 return hash ("UpdateSettings" )
45624560
4563- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {
4561+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {
45644562 "updateMask" : {},
45654563 }
45664564
@@ -4659,7 +4657,7 @@ class _UpdateView(ContactCenterInsightsRestStub):
46594657 def __hash__ (self ):
46604658 return hash ("UpdateView" )
46614659
4662- __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , str ] = {}
4660+ __REQUIRED_FIELDS_DEFAULT_VALUES : Dict [str , Any ] = {}
46634661
46644662 @classmethod
46654663 def _get_unset_required_fields (cls , message_dict ):
0 commit comments