1+ import datetime
2+
13from google .protobuf import empty_pb2 as _empty_pb2
24from google .protobuf import timestamp_pb2 as _timestamp_pb2
35from google .protobuf .internal import containers as _containers
46from google .protobuf .internal import enum_type_wrapper as _enum_type_wrapper
57from google .protobuf import descriptor as _descriptor
68from google .protobuf import message as _message
7- from typing import (
8- ClassVar as _ClassVar ,
9- Iterable as _Iterable ,
10- Mapping as _Mapping ,
11- Optional as _Optional ,
12- Union as _Union ,
13- )
9+ from collections .abc import Iterable as _Iterable , Mapping as _Mapping
10+ from typing import ClassVar as _ClassVar , Optional as _Optional , Union as _Union
1411
1512DESCRIPTOR : _descriptor .FileDescriptor
1613
1714class Payload (_message .Message ):
1815 __slots__ = ("keys" , "value" , "event_time" , "watermark" , "id" , "headers" )
19-
2016 class HeadersEntry (_message .Message ):
2117 __slots__ = ("key" , "value" )
2218 KEY_FIELD_NUMBER : _ClassVar [int ]
@@ -36,22 +32,12 @@ class Payload(_message.Message):
3632 watermark : _timestamp_pb2 .Timestamp
3733 id : str
3834 headers : _containers .ScalarMap [str , str ]
39- def __init__ (
40- self ,
41- keys : _Optional [_Iterable [str ]] = ...,
42- value : _Optional [bytes ] = ...,
43- event_time : _Optional [_Union [_timestamp_pb2 .Timestamp , _Mapping ]] = ...,
44- watermark : _Optional [_Union [_timestamp_pb2 .Timestamp , _Mapping ]] = ...,
45- id : _Optional [str ] = ...,
46- headers : _Optional [_Mapping [str , str ]] = ...,
47- ) -> None : ...
35+ def __init__ (self , keys : _Optional [_Iterable [str ]] = ..., value : _Optional [bytes ] = ..., event_time : _Optional [_Union [datetime .datetime , _timestamp_pb2 .Timestamp , _Mapping ]] = ..., watermark : _Optional [_Union [datetime .datetime , _timestamp_pb2 .Timestamp , _Mapping ]] = ..., id : _Optional [str ] = ..., headers : _Optional [_Mapping [str , str ]] = ...) -> None : ...
4836
4937class AccumulatorRequest (_message .Message ):
5038 __slots__ = ("payload" , "operation" )
51-
5239 class WindowOperation (_message .Message ):
5340 __slots__ = ("event" , "keyedWindow" )
54-
5541 class Event (int , metaclass = _enum_type_wrapper .EnumTypeWrapper ):
5642 __slots__ = ()
5743 OPEN : _ClassVar [AccumulatorRequest .WindowOperation .Event ]
@@ -64,20 +50,12 @@ class AccumulatorRequest(_message.Message):
6450 KEYEDWINDOW_FIELD_NUMBER : _ClassVar [int ]
6551 event : AccumulatorRequest .WindowOperation .Event
6652 keyedWindow : KeyedWindow
67- def __init__ (
68- self ,
69- event : _Optional [_Union [AccumulatorRequest .WindowOperation .Event , str ]] = ...,
70- keyedWindow : _Optional [_Union [KeyedWindow , _Mapping ]] = ...,
71- ) -> None : ...
53+ def __init__ (self , event : _Optional [_Union [AccumulatorRequest .WindowOperation .Event , str ]] = ..., keyedWindow : _Optional [_Union [KeyedWindow , _Mapping ]] = ...) -> None : ...
7254 PAYLOAD_FIELD_NUMBER : _ClassVar [int ]
7355 OPERATION_FIELD_NUMBER : _ClassVar [int ]
7456 payload : Payload
7557 operation : AccumulatorRequest .WindowOperation
76- def __init__ (
77- self ,
78- payload : _Optional [_Union [Payload , _Mapping ]] = ...,
79- operation : _Optional [_Union [AccumulatorRequest .WindowOperation , _Mapping ]] = ...,
80- ) -> None : ...
58+ def __init__ (self , payload : _Optional [_Union [Payload , _Mapping ]] = ..., operation : _Optional [_Union [AccumulatorRequest .WindowOperation , _Mapping ]] = ...) -> None : ...
8159
8260class KeyedWindow (_message .Message ):
8361 __slots__ = ("start" , "end" , "slot" , "keys" )
@@ -89,13 +67,7 @@ class KeyedWindow(_message.Message):
8967 end : _timestamp_pb2 .Timestamp
9068 slot : str
9169 keys : _containers .RepeatedScalarFieldContainer [str ]
92- def __init__ (
93- self ,
94- start : _Optional [_Union [_timestamp_pb2 .Timestamp , _Mapping ]] = ...,
95- end : _Optional [_Union [_timestamp_pb2 .Timestamp , _Mapping ]] = ...,
96- slot : _Optional [str ] = ...,
97- keys : _Optional [_Iterable [str ]] = ...,
98- ) -> None : ...
70+ def __init__ (self , start : _Optional [_Union [datetime .datetime , _timestamp_pb2 .Timestamp , _Mapping ]] = ..., end : _Optional [_Union [datetime .datetime , _timestamp_pb2 .Timestamp , _Mapping ]] = ..., slot : _Optional [str ] = ..., keys : _Optional [_Iterable [str ]] = ...) -> None : ...
9971
10072class AccumulatorResponse (_message .Message ):
10173 __slots__ = ("payload" , "window" , "tags" , "EOF" )
@@ -107,13 +79,7 @@ class AccumulatorResponse(_message.Message):
10779 window : KeyedWindow
10880 tags : _containers .RepeatedScalarFieldContainer [str ]
10981 EOF : bool
110- def __init__ (
111- self ,
112- payload : _Optional [_Union [Payload , _Mapping ]] = ...,
113- window : _Optional [_Union [KeyedWindow , _Mapping ]] = ...,
114- tags : _Optional [_Iterable [str ]] = ...,
115- EOF : bool = ...,
116- ) -> None : ...
82+ def __init__ (self , payload : _Optional [_Union [Payload , _Mapping ]] = ..., window : _Optional [_Union [KeyedWindow , _Mapping ]] = ..., tags : _Optional [_Iterable [str ]] = ..., EOF : bool = ...) -> None : ...
11783
11884class ReadyResponse (_message .Message ):
11985 __slots__ = ("ready" ,)
0 commit comments