rappel 0.5.1__py3-none-manylinux_2_39_aarch64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- proto/ast_pb2.py +115 -0
- proto/ast_pb2.pyi +1522 -0
- proto/ast_pb2_grpc.py +24 -0
- proto/ast_pb2_grpc.pyi +22 -0
- proto/messages_pb2.py +106 -0
- proto/messages_pb2.pyi +1205 -0
- proto/messages_pb2_grpc.py +406 -0
- proto/messages_pb2_grpc.pyi +380 -0
- rappel/__init__.py +56 -0
- rappel/actions.py +108 -0
- rappel/bin/boot-rappel-singleton +0 -0
- rappel/bin/rappel-bridge +0 -0
- rappel/bin/start-workers +0 -0
- rappel/bridge.py +228 -0
- rappel/dependencies.py +149 -0
- rappel/exceptions.py +11 -0
- rappel/formatter.py +110 -0
- rappel/ir_builder.py +2966 -0
- rappel/logger.py +39 -0
- rappel/registry.py +106 -0
- rappel/schedule.py +347 -0
- rappel/serialization.py +253 -0
- rappel/worker.py +191 -0
- rappel/workflow.py +236 -0
- rappel/workflow_runtime.py +287 -0
- rappel-0.5.1.data/scripts/boot-rappel-singleton +0 -0
- rappel-0.5.1.data/scripts/rappel-bridge +0 -0
- rappel-0.5.1.data/scripts/start-workers +0 -0
- rappel-0.5.1.dist-info/METADATA +299 -0
- rappel-0.5.1.dist-info/RECORD +32 -0
- rappel-0.5.1.dist-info/WHEEL +4 -0
- rappel-0.5.1.dist-info/entry_points.txt +2 -0
proto/ast_pb2.pyi
ADDED
|
@@ -0,0 +1,1522 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import builtins
|
|
7
|
+
import collections.abc
|
|
8
|
+
import sys
|
|
9
|
+
import typing
|
|
10
|
+
|
|
11
|
+
import google.protobuf.descriptor
|
|
12
|
+
import google.protobuf.internal.containers
|
|
13
|
+
import google.protobuf.internal.enum_type_wrapper
|
|
14
|
+
import google.protobuf.message
|
|
15
|
+
|
|
16
|
+
if sys.version_info >= (3, 10):
|
|
17
|
+
import typing as typing_extensions
|
|
18
|
+
else:
|
|
19
|
+
import typing_extensions
|
|
20
|
+
|
|
21
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
22
|
+
|
|
23
|
+
class _BinaryOperator:
|
|
24
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
25
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
26
|
+
|
|
27
|
+
class _BinaryOperatorEnumTypeWrapper(
|
|
28
|
+
google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_BinaryOperator.ValueType],
|
|
29
|
+
builtins.type,
|
|
30
|
+
):
|
|
31
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
32
|
+
BINARY_OP_UNSPECIFIED: _BinaryOperator.ValueType # 0
|
|
33
|
+
BINARY_OP_ADD: _BinaryOperator.ValueType # 1
|
|
34
|
+
"""Arithmetic"""
|
|
35
|
+
BINARY_OP_SUB: _BinaryOperator.ValueType # 2
|
|
36
|
+
BINARY_OP_MUL: _BinaryOperator.ValueType # 3
|
|
37
|
+
BINARY_OP_DIV: _BinaryOperator.ValueType # 4
|
|
38
|
+
BINARY_OP_FLOOR_DIV: _BinaryOperator.ValueType # 5
|
|
39
|
+
BINARY_OP_MOD: _BinaryOperator.ValueType # 6
|
|
40
|
+
BINARY_OP_EQ: _BinaryOperator.ValueType # 10
|
|
41
|
+
"""Comparison"""
|
|
42
|
+
BINARY_OP_NE: _BinaryOperator.ValueType # 11
|
|
43
|
+
BINARY_OP_LT: _BinaryOperator.ValueType # 12
|
|
44
|
+
BINARY_OP_LE: _BinaryOperator.ValueType # 13
|
|
45
|
+
BINARY_OP_GT: _BinaryOperator.ValueType # 14
|
|
46
|
+
BINARY_OP_GE: _BinaryOperator.ValueType # 15
|
|
47
|
+
BINARY_OP_IN: _BinaryOperator.ValueType # 16
|
|
48
|
+
BINARY_OP_NOT_IN: _BinaryOperator.ValueType # 17
|
|
49
|
+
BINARY_OP_AND: _BinaryOperator.ValueType # 20
|
|
50
|
+
"""Logical"""
|
|
51
|
+
BINARY_OP_OR: _BinaryOperator.ValueType # 21
|
|
52
|
+
|
|
53
|
+
class BinaryOperator(_BinaryOperator, metaclass=_BinaryOperatorEnumTypeWrapper): ...
|
|
54
|
+
|
|
55
|
+
BINARY_OP_UNSPECIFIED: BinaryOperator.ValueType # 0
|
|
56
|
+
BINARY_OP_ADD: BinaryOperator.ValueType # 1
|
|
57
|
+
"""Arithmetic"""
|
|
58
|
+
BINARY_OP_SUB: BinaryOperator.ValueType # 2
|
|
59
|
+
BINARY_OP_MUL: BinaryOperator.ValueType # 3
|
|
60
|
+
BINARY_OP_DIV: BinaryOperator.ValueType # 4
|
|
61
|
+
BINARY_OP_FLOOR_DIV: BinaryOperator.ValueType # 5
|
|
62
|
+
BINARY_OP_MOD: BinaryOperator.ValueType # 6
|
|
63
|
+
BINARY_OP_EQ: BinaryOperator.ValueType # 10
|
|
64
|
+
"""Comparison"""
|
|
65
|
+
BINARY_OP_NE: BinaryOperator.ValueType # 11
|
|
66
|
+
BINARY_OP_LT: BinaryOperator.ValueType # 12
|
|
67
|
+
BINARY_OP_LE: BinaryOperator.ValueType # 13
|
|
68
|
+
BINARY_OP_GT: BinaryOperator.ValueType # 14
|
|
69
|
+
BINARY_OP_GE: BinaryOperator.ValueType # 15
|
|
70
|
+
BINARY_OP_IN: BinaryOperator.ValueType # 16
|
|
71
|
+
BINARY_OP_NOT_IN: BinaryOperator.ValueType # 17
|
|
72
|
+
BINARY_OP_AND: BinaryOperator.ValueType # 20
|
|
73
|
+
"""Logical"""
|
|
74
|
+
BINARY_OP_OR: BinaryOperator.ValueType # 21
|
|
75
|
+
Global___BinaryOperator: typing_extensions.TypeAlias = BinaryOperator
|
|
76
|
+
|
|
77
|
+
class _UnaryOperator:
|
|
78
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
79
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
80
|
+
|
|
81
|
+
class _UnaryOperatorEnumTypeWrapper(
|
|
82
|
+
google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_UnaryOperator.ValueType],
|
|
83
|
+
builtins.type,
|
|
84
|
+
):
|
|
85
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
86
|
+
UNARY_OP_UNSPECIFIED: _UnaryOperator.ValueType # 0
|
|
87
|
+
UNARY_OP_NEG: _UnaryOperator.ValueType # 1
|
|
88
|
+
UNARY_OP_NOT: _UnaryOperator.ValueType # 2
|
|
89
|
+
|
|
90
|
+
class UnaryOperator(_UnaryOperator, metaclass=_UnaryOperatorEnumTypeWrapper): ...
|
|
91
|
+
|
|
92
|
+
UNARY_OP_UNSPECIFIED: UnaryOperator.ValueType # 0
|
|
93
|
+
UNARY_OP_NEG: UnaryOperator.ValueType # 1
|
|
94
|
+
UNARY_OP_NOT: UnaryOperator.ValueType # 2
|
|
95
|
+
Global___UnaryOperator: typing_extensions.TypeAlias = UnaryOperator
|
|
96
|
+
|
|
97
|
+
@typing.final
|
|
98
|
+
class Program(google.protobuf.message.Message):
|
|
99
|
+
"""-----------------------------------------------------------------------------
|
|
100
|
+
Top-Level Structure
|
|
101
|
+
-----------------------------------------------------------------------------
|
|
102
|
+
|
|
103
|
+
A complete Rappel program (one or more function definitions)
|
|
104
|
+
"""
|
|
105
|
+
|
|
106
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
107
|
+
|
|
108
|
+
FUNCTIONS_FIELD_NUMBER: builtins.int
|
|
109
|
+
@property
|
|
110
|
+
def functions(
|
|
111
|
+
self,
|
|
112
|
+
) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
|
|
113
|
+
Global___FunctionDef
|
|
114
|
+
]: ...
|
|
115
|
+
def __init__(
|
|
116
|
+
self,
|
|
117
|
+
*,
|
|
118
|
+
functions: collections.abc.Iterable[Global___FunctionDef] | None = ...,
|
|
119
|
+
) -> None: ...
|
|
120
|
+
def ClearField(self, field_name: typing.Literal["functions", b"functions"]) -> None: ...
|
|
121
|
+
|
|
122
|
+
Global___Program: typing_extensions.TypeAlias = Program
|
|
123
|
+
|
|
124
|
+
@typing.final
|
|
125
|
+
class FunctionDef(google.protobuf.message.Message):
|
|
126
|
+
"""Function definition with explicit input/output declarations"""
|
|
127
|
+
|
|
128
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
129
|
+
|
|
130
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
131
|
+
IO_FIELD_NUMBER: builtins.int
|
|
132
|
+
BODY_FIELD_NUMBER: builtins.int
|
|
133
|
+
SPAN_FIELD_NUMBER: builtins.int
|
|
134
|
+
name: builtins.str
|
|
135
|
+
@property
|
|
136
|
+
def io(self) -> Global___IoDecl: ...
|
|
137
|
+
@property
|
|
138
|
+
def body(self) -> Global___Block: ...
|
|
139
|
+
@property
|
|
140
|
+
def span(self) -> Global___Span: ...
|
|
141
|
+
def __init__(
|
|
142
|
+
self,
|
|
143
|
+
*,
|
|
144
|
+
name: builtins.str = ...,
|
|
145
|
+
io: Global___IoDecl | None = ...,
|
|
146
|
+
body: Global___Block | None = ...,
|
|
147
|
+
span: Global___Span | None = ...,
|
|
148
|
+
) -> None: ...
|
|
149
|
+
def HasField(
|
|
150
|
+
self, field_name: typing.Literal["body", b"body", "io", b"io", "span", b"span"]
|
|
151
|
+
) -> builtins.bool: ...
|
|
152
|
+
def ClearField(
|
|
153
|
+
self,
|
|
154
|
+
field_name: typing.Literal["body", b"body", "io", b"io", "name", b"name", "span", b"span"],
|
|
155
|
+
) -> None: ...
|
|
156
|
+
|
|
157
|
+
Global___FunctionDef: typing_extensions.TypeAlias = FunctionDef
|
|
158
|
+
|
|
159
|
+
@typing.final
|
|
160
|
+
class IoDecl(google.protobuf.message.Message):
|
|
161
|
+
"""Input/output declaration: fn foo(input: [a, b], output: [c])"""
|
|
162
|
+
|
|
163
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
164
|
+
|
|
165
|
+
INPUTS_FIELD_NUMBER: builtins.int
|
|
166
|
+
OUTPUTS_FIELD_NUMBER: builtins.int
|
|
167
|
+
SPAN_FIELD_NUMBER: builtins.int
|
|
168
|
+
@property
|
|
169
|
+
def inputs(
|
|
170
|
+
self,
|
|
171
|
+
) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
|
|
172
|
+
@property
|
|
173
|
+
def outputs(
|
|
174
|
+
self,
|
|
175
|
+
) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
|
|
176
|
+
@property
|
|
177
|
+
def span(self) -> Global___Span: ...
|
|
178
|
+
def __init__(
|
|
179
|
+
self,
|
|
180
|
+
*,
|
|
181
|
+
inputs: collections.abc.Iterable[builtins.str] | None = ...,
|
|
182
|
+
outputs: collections.abc.Iterable[builtins.str] | None = ...,
|
|
183
|
+
span: Global___Span | None = ...,
|
|
184
|
+
) -> None: ...
|
|
185
|
+
def HasField(self, field_name: typing.Literal["span", b"span"]) -> builtins.bool: ...
|
|
186
|
+
def ClearField(
|
|
187
|
+
self,
|
|
188
|
+
field_name: typing.Literal["inputs", b"inputs", "outputs", b"outputs", "span", b"span"],
|
|
189
|
+
) -> None: ...
|
|
190
|
+
|
|
191
|
+
Global___IoDecl: typing_extensions.TypeAlias = IoDecl
|
|
192
|
+
|
|
193
|
+
@typing.final
|
|
194
|
+
class Block(google.protobuf.message.Message):
|
|
195
|
+
"""A block of statements (function body - no call restrictions)"""
|
|
196
|
+
|
|
197
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
198
|
+
|
|
199
|
+
STATEMENTS_FIELD_NUMBER: builtins.int
|
|
200
|
+
SPAN_FIELD_NUMBER: builtins.int
|
|
201
|
+
@property
|
|
202
|
+
def statements(
|
|
203
|
+
self,
|
|
204
|
+
) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
|
|
205
|
+
Global___Statement
|
|
206
|
+
]: ...
|
|
207
|
+
@property
|
|
208
|
+
def span(self) -> Global___Span: ...
|
|
209
|
+
def __init__(
|
|
210
|
+
self,
|
|
211
|
+
*,
|
|
212
|
+
statements: collections.abc.Iterable[Global___Statement] | None = ...,
|
|
213
|
+
span: Global___Span | None = ...,
|
|
214
|
+
) -> None: ...
|
|
215
|
+
def HasField(self, field_name: typing.Literal["span", b"span"]) -> builtins.bool: ...
|
|
216
|
+
def ClearField(
|
|
217
|
+
self, field_name: typing.Literal["span", b"span", "statements", b"statements"]
|
|
218
|
+
) -> None: ...
|
|
219
|
+
|
|
220
|
+
Global___Block: typing_extensions.TypeAlias = Block
|
|
221
|
+
|
|
222
|
+
@typing.final
|
|
223
|
+
class Statement(google.protobuf.message.Message):
|
|
224
|
+
"""-----------------------------------------------------------------------------
|
|
225
|
+
Statements
|
|
226
|
+
-----------------------------------------------------------------------------
|
|
227
|
+
"""
|
|
228
|
+
|
|
229
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
230
|
+
|
|
231
|
+
ASSIGNMENT_FIELD_NUMBER: builtins.int
|
|
232
|
+
ACTION_CALL_FIELD_NUMBER: builtins.int
|
|
233
|
+
SPREAD_ACTION_FIELD_NUMBER: builtins.int
|
|
234
|
+
PARALLEL_BLOCK_FIELD_NUMBER: builtins.int
|
|
235
|
+
FOR_LOOP_FIELD_NUMBER: builtins.int
|
|
236
|
+
CONDITIONAL_FIELD_NUMBER: builtins.int
|
|
237
|
+
TRY_EXCEPT_FIELD_NUMBER: builtins.int
|
|
238
|
+
RETURN_STMT_FIELD_NUMBER: builtins.int
|
|
239
|
+
EXPR_STMT_FIELD_NUMBER: builtins.int
|
|
240
|
+
SPAN_FIELD_NUMBER: builtins.int
|
|
241
|
+
@property
|
|
242
|
+
def assignment(self) -> Global___Assignment: ...
|
|
243
|
+
@property
|
|
244
|
+
def action_call(self) -> Global___ActionCall: ...
|
|
245
|
+
@property
|
|
246
|
+
def spread_action(self) -> Global___SpreadAction: ...
|
|
247
|
+
@property
|
|
248
|
+
def parallel_block(self) -> Global___ParallelBlock: ...
|
|
249
|
+
@property
|
|
250
|
+
def for_loop(self) -> Global___ForLoop: ...
|
|
251
|
+
@property
|
|
252
|
+
def conditional(self) -> Global___Conditional: ...
|
|
253
|
+
@property
|
|
254
|
+
def try_except(self) -> Global___TryExcept: ...
|
|
255
|
+
@property
|
|
256
|
+
def return_stmt(self) -> Global___ReturnStmt: ...
|
|
257
|
+
@property
|
|
258
|
+
def expr_stmt(self) -> Global___ExprStmt: ...
|
|
259
|
+
@property
|
|
260
|
+
def span(self) -> Global___Span: ...
|
|
261
|
+
def __init__(
|
|
262
|
+
self,
|
|
263
|
+
*,
|
|
264
|
+
assignment: Global___Assignment | None = ...,
|
|
265
|
+
action_call: Global___ActionCall | None = ...,
|
|
266
|
+
spread_action: Global___SpreadAction | None = ...,
|
|
267
|
+
parallel_block: Global___ParallelBlock | None = ...,
|
|
268
|
+
for_loop: Global___ForLoop | None = ...,
|
|
269
|
+
conditional: Global___Conditional | None = ...,
|
|
270
|
+
try_except: Global___TryExcept | None = ...,
|
|
271
|
+
return_stmt: Global___ReturnStmt | None = ...,
|
|
272
|
+
expr_stmt: Global___ExprStmt | None = ...,
|
|
273
|
+
span: Global___Span | None = ...,
|
|
274
|
+
) -> None: ...
|
|
275
|
+
def HasField(
|
|
276
|
+
self,
|
|
277
|
+
field_name: typing.Literal[
|
|
278
|
+
"action_call",
|
|
279
|
+
b"action_call",
|
|
280
|
+
"assignment",
|
|
281
|
+
b"assignment",
|
|
282
|
+
"conditional",
|
|
283
|
+
b"conditional",
|
|
284
|
+
"expr_stmt",
|
|
285
|
+
b"expr_stmt",
|
|
286
|
+
"for_loop",
|
|
287
|
+
b"for_loop",
|
|
288
|
+
"kind",
|
|
289
|
+
b"kind",
|
|
290
|
+
"parallel_block",
|
|
291
|
+
b"parallel_block",
|
|
292
|
+
"return_stmt",
|
|
293
|
+
b"return_stmt",
|
|
294
|
+
"span",
|
|
295
|
+
b"span",
|
|
296
|
+
"spread_action",
|
|
297
|
+
b"spread_action",
|
|
298
|
+
"try_except",
|
|
299
|
+
b"try_except",
|
|
300
|
+
],
|
|
301
|
+
) -> builtins.bool: ...
|
|
302
|
+
def ClearField(
|
|
303
|
+
self,
|
|
304
|
+
field_name: typing.Literal[
|
|
305
|
+
"action_call",
|
|
306
|
+
b"action_call",
|
|
307
|
+
"assignment",
|
|
308
|
+
b"assignment",
|
|
309
|
+
"conditional",
|
|
310
|
+
b"conditional",
|
|
311
|
+
"expr_stmt",
|
|
312
|
+
b"expr_stmt",
|
|
313
|
+
"for_loop",
|
|
314
|
+
b"for_loop",
|
|
315
|
+
"kind",
|
|
316
|
+
b"kind",
|
|
317
|
+
"parallel_block",
|
|
318
|
+
b"parallel_block",
|
|
319
|
+
"return_stmt",
|
|
320
|
+
b"return_stmt",
|
|
321
|
+
"span",
|
|
322
|
+
b"span",
|
|
323
|
+
"spread_action",
|
|
324
|
+
b"spread_action",
|
|
325
|
+
"try_except",
|
|
326
|
+
b"try_except",
|
|
327
|
+
],
|
|
328
|
+
) -> None: ...
|
|
329
|
+
def WhichOneof(
|
|
330
|
+
self, oneof_group: typing.Literal["kind", b"kind"]
|
|
331
|
+
) -> (
|
|
332
|
+
typing.Literal[
|
|
333
|
+
"assignment",
|
|
334
|
+
"action_call",
|
|
335
|
+
"spread_action",
|
|
336
|
+
"parallel_block",
|
|
337
|
+
"for_loop",
|
|
338
|
+
"conditional",
|
|
339
|
+
"try_except",
|
|
340
|
+
"return_stmt",
|
|
341
|
+
"expr_stmt",
|
|
342
|
+
]
|
|
343
|
+
| None
|
|
344
|
+
): ...
|
|
345
|
+
|
|
346
|
+
Global___Statement: typing_extensions.TypeAlias = Statement
|
|
347
|
+
|
|
348
|
+
@typing.final
|
|
349
|
+
class Assignment(google.protobuf.message.Message):
|
|
350
|
+
"""Variable assignment: x = expr"""
|
|
351
|
+
|
|
352
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
353
|
+
|
|
354
|
+
TARGETS_FIELD_NUMBER: builtins.int
|
|
355
|
+
VALUE_FIELD_NUMBER: builtins.int
|
|
356
|
+
@property
|
|
357
|
+
def targets(
|
|
358
|
+
self,
|
|
359
|
+
) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
|
360
|
+
"""Single variable or tuple unpacking (a, b = expr)"""
|
|
361
|
+
|
|
362
|
+
@property
|
|
363
|
+
def value(self) -> Global___Expr: ...
|
|
364
|
+
def __init__(
|
|
365
|
+
self,
|
|
366
|
+
*,
|
|
367
|
+
targets: collections.abc.Iterable[builtins.str] | None = ...,
|
|
368
|
+
value: Global___Expr | None = ...,
|
|
369
|
+
) -> None: ...
|
|
370
|
+
def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ...
|
|
371
|
+
def ClearField(
|
|
372
|
+
self, field_name: typing.Literal["targets", b"targets", "value", b"value"]
|
|
373
|
+
) -> None: ...
|
|
374
|
+
|
|
375
|
+
Global___Assignment: typing_extensions.TypeAlias = Assignment
|
|
376
|
+
|
|
377
|
+
@typing.final
|
|
378
|
+
class ActionCall(google.protobuf.message.Message):
|
|
379
|
+
"""Action call: @action(kwargs) [retry_policy] [timeout]
|
|
380
|
+
Can be used as:
|
|
381
|
+
- Statement (side effect only): @notify(user=x)
|
|
382
|
+
- Expression in Assignment (with binding): result = @fetch(id=x)
|
|
383
|
+
- Expression in Assignment (with unpacking): a, b = @get_pair()
|
|
384
|
+
"""
|
|
385
|
+
|
|
386
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
387
|
+
|
|
388
|
+
ACTION_NAME_FIELD_NUMBER: builtins.int
|
|
389
|
+
KWARGS_FIELD_NUMBER: builtins.int
|
|
390
|
+
POLICIES_FIELD_NUMBER: builtins.int
|
|
391
|
+
MODULE_NAME_FIELD_NUMBER: builtins.int
|
|
392
|
+
action_name: builtins.str
|
|
393
|
+
module_name: builtins.str
|
|
394
|
+
"""Python module containing the action"""
|
|
395
|
+
@property
|
|
396
|
+
def kwargs(
|
|
397
|
+
self,
|
|
398
|
+
) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Kwarg]: ...
|
|
399
|
+
@property
|
|
400
|
+
def policies(
|
|
401
|
+
self,
|
|
402
|
+
) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
|
|
403
|
+
Global___PolicyBracket
|
|
404
|
+
]: ...
|
|
405
|
+
def __init__(
|
|
406
|
+
self,
|
|
407
|
+
*,
|
|
408
|
+
action_name: builtins.str = ...,
|
|
409
|
+
kwargs: collections.abc.Iterable[Global___Kwarg] | None = ...,
|
|
410
|
+
policies: collections.abc.Iterable[Global___PolicyBracket] | None = ...,
|
|
411
|
+
module_name: builtins.str | None = ...,
|
|
412
|
+
) -> None: ...
|
|
413
|
+
def HasField(
|
|
414
|
+
self,
|
|
415
|
+
field_name: typing.Literal["_module_name", b"_module_name", "module_name", b"module_name"],
|
|
416
|
+
) -> builtins.bool: ...
|
|
417
|
+
def ClearField(
|
|
418
|
+
self,
|
|
419
|
+
field_name: typing.Literal[
|
|
420
|
+
"_module_name",
|
|
421
|
+
b"_module_name",
|
|
422
|
+
"action_name",
|
|
423
|
+
b"action_name",
|
|
424
|
+
"kwargs",
|
|
425
|
+
b"kwargs",
|
|
426
|
+
"module_name",
|
|
427
|
+
b"module_name",
|
|
428
|
+
"policies",
|
|
429
|
+
b"policies",
|
|
430
|
+
],
|
|
431
|
+
) -> None: ...
|
|
432
|
+
def WhichOneof(
|
|
433
|
+
self, oneof_group: typing.Literal["_module_name", b"_module_name"]
|
|
434
|
+
) -> typing.Literal["module_name"] | None: ...
|
|
435
|
+
|
|
436
|
+
Global___ActionCall: typing_extensions.TypeAlias = ActionCall
|
|
437
|
+
|
|
438
|
+
@typing.final
|
|
439
|
+
class SpreadAction(google.protobuf.message.Message):
|
|
440
|
+
"""Spread action statement (side effect only, no result capture)
|
|
441
|
+
For result capture, use Assignment with SpreadExpr
|
|
442
|
+
"""
|
|
443
|
+
|
|
444
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
445
|
+
|
|
446
|
+
COLLECTION_FIELD_NUMBER: builtins.int
|
|
447
|
+
LOOP_VAR_FIELD_NUMBER: builtins.int
|
|
448
|
+
ACTION_FIELD_NUMBER: builtins.int
|
|
449
|
+
loop_var: builtins.str
|
|
450
|
+
"""Variable name for each item"""
|
|
451
|
+
@property
|
|
452
|
+
def collection(self) -> Global___Expr:
|
|
453
|
+
"""The collection to iterate"""
|
|
454
|
+
|
|
455
|
+
@property
|
|
456
|
+
def action(self) -> Global___ActionCall:
|
|
457
|
+
"""The action to call per item"""
|
|
458
|
+
|
|
459
|
+
def __init__(
|
|
460
|
+
self,
|
|
461
|
+
*,
|
|
462
|
+
collection: Global___Expr | None = ...,
|
|
463
|
+
loop_var: builtins.str = ...,
|
|
464
|
+
action: Global___ActionCall | None = ...,
|
|
465
|
+
) -> None: ...
|
|
466
|
+
def HasField(
|
|
467
|
+
self, field_name: typing.Literal["action", b"action", "collection", b"collection"]
|
|
468
|
+
) -> builtins.bool: ...
|
|
469
|
+
def ClearField(
|
|
470
|
+
self,
|
|
471
|
+
field_name: typing.Literal[
|
|
472
|
+
"action", b"action", "collection", b"collection", "loop_var", b"loop_var"
|
|
473
|
+
],
|
|
474
|
+
) -> None: ...
|
|
475
|
+
|
|
476
|
+
Global___SpreadAction: typing_extensions.TypeAlias = SpreadAction
|
|
477
|
+
|
|
478
|
+
@typing.final
|
|
479
|
+
class ParallelBlock(google.protobuf.message.Message):
|
|
480
|
+
"""Parallel block statement (side effect only, no result capture)
|
|
481
|
+
For result capture, use Assignment with ParallelExpr
|
|
482
|
+
"""
|
|
483
|
+
|
|
484
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
485
|
+
|
|
486
|
+
CALLS_FIELD_NUMBER: builtins.int
|
|
487
|
+
@property
|
|
488
|
+
def calls(
|
|
489
|
+
self,
|
|
490
|
+
) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Call]:
|
|
491
|
+
"""Actions or function calls to run in parallel"""
|
|
492
|
+
|
|
493
|
+
def __init__(
|
|
494
|
+
self,
|
|
495
|
+
*,
|
|
496
|
+
calls: collections.abc.Iterable[Global___Call] | None = ...,
|
|
497
|
+
) -> None: ...
|
|
498
|
+
def ClearField(self, field_name: typing.Literal["calls", b"calls"]) -> None: ...
|
|
499
|
+
|
|
500
|
+
Global___ParallelBlock: typing_extensions.TypeAlias = ParallelBlock
|
|
501
|
+
|
|
502
|
+
@typing.final
|
|
503
|
+
class Call(google.protobuf.message.Message):
|
|
504
|
+
"""A call that can be either action or function (for parallel blocks)"""
|
|
505
|
+
|
|
506
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
507
|
+
|
|
508
|
+
ACTION_FIELD_NUMBER: builtins.int
|
|
509
|
+
FUNCTION_FIELD_NUMBER: builtins.int
|
|
510
|
+
@property
|
|
511
|
+
def action(self) -> Global___ActionCall: ...
|
|
512
|
+
@property
|
|
513
|
+
def function(self) -> Global___FunctionCall: ...
|
|
514
|
+
def __init__(
|
|
515
|
+
self,
|
|
516
|
+
*,
|
|
517
|
+
action: Global___ActionCall | None = ...,
|
|
518
|
+
function: Global___FunctionCall | None = ...,
|
|
519
|
+
) -> None: ...
|
|
520
|
+
def HasField(
|
|
521
|
+
self,
|
|
522
|
+
field_name: typing.Literal["action", b"action", "function", b"function", "kind", b"kind"],
|
|
523
|
+
) -> builtins.bool: ...
|
|
524
|
+
def ClearField(
|
|
525
|
+
self,
|
|
526
|
+
field_name: typing.Literal["action", b"action", "function", b"function", "kind", b"kind"],
|
|
527
|
+
) -> None: ...
|
|
528
|
+
def WhichOneof(
|
|
529
|
+
self, oneof_group: typing.Literal["kind", b"kind"]
|
|
530
|
+
) -> typing.Literal["action", "function"] | None: ...
|
|
531
|
+
|
|
532
|
+
Global___Call: typing_extensions.TypeAlias = Call
|
|
533
|
+
|
|
534
|
+
@typing.final
|
|
535
|
+
class ForLoop(google.protobuf.message.Message):
|
|
536
|
+
"""For loop: for item in items: ..."""
|
|
537
|
+
|
|
538
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
539
|
+
|
|
540
|
+
LOOP_VARS_FIELD_NUMBER: builtins.int
|
|
541
|
+
ITERABLE_FIELD_NUMBER: builtins.int
|
|
542
|
+
BLOCK_BODY_FIELD_NUMBER: builtins.int
|
|
543
|
+
@property
|
|
544
|
+
def loop_vars(
|
|
545
|
+
self,
|
|
546
|
+
) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
|
547
|
+
"""Loop variable(s) for unpacking"""
|
|
548
|
+
|
|
549
|
+
@property
|
|
550
|
+
def iterable(self) -> Global___Expr: ...
|
|
551
|
+
@property
|
|
552
|
+
def block_body(self) -> Global___Block: ...
|
|
553
|
+
def __init__(
|
|
554
|
+
self,
|
|
555
|
+
*,
|
|
556
|
+
loop_vars: collections.abc.Iterable[builtins.str] | None = ...,
|
|
557
|
+
iterable: Global___Expr | None = ...,
|
|
558
|
+
block_body: Global___Block | None = ...,
|
|
559
|
+
) -> None: ...
|
|
560
|
+
def HasField(
|
|
561
|
+
self, field_name: typing.Literal["block_body", b"block_body", "iterable", b"iterable"]
|
|
562
|
+
) -> builtins.bool: ...
|
|
563
|
+
def ClearField(
|
|
564
|
+
self,
|
|
565
|
+
field_name: typing.Literal[
|
|
566
|
+
"block_body", b"block_body", "iterable", b"iterable", "loop_vars", b"loop_vars"
|
|
567
|
+
],
|
|
568
|
+
) -> None: ...
|
|
569
|
+
|
|
570
|
+
Global___ForLoop: typing_extensions.TypeAlias = ForLoop
|
|
571
|
+
|
|
572
|
+
@typing.final
|
|
573
|
+
class Conditional(google.protobuf.message.Message):
|
|
574
|
+
"""Conditional: if/elif/else"""
|
|
575
|
+
|
|
576
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
577
|
+
|
|
578
|
+
IF_BRANCH_FIELD_NUMBER: builtins.int
|
|
579
|
+
ELIF_BRANCHES_FIELD_NUMBER: builtins.int
|
|
580
|
+
ELSE_BRANCH_FIELD_NUMBER: builtins.int
|
|
581
|
+
@property
|
|
582
|
+
def if_branch(self) -> Global___IfBranch: ...
|
|
583
|
+
@property
|
|
584
|
+
def elif_branches(
|
|
585
|
+
self,
|
|
586
|
+
) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
|
|
587
|
+
Global___ElifBranch
|
|
588
|
+
]: ...
|
|
589
|
+
@property
|
|
590
|
+
def else_branch(self) -> Global___ElseBranch: ...
|
|
591
|
+
def __init__(
|
|
592
|
+
self,
|
|
593
|
+
*,
|
|
594
|
+
if_branch: Global___IfBranch | None = ...,
|
|
595
|
+
elif_branches: collections.abc.Iterable[Global___ElifBranch] | None = ...,
|
|
596
|
+
else_branch: Global___ElseBranch | None = ...,
|
|
597
|
+
) -> None: ...
|
|
598
|
+
def HasField(
|
|
599
|
+
self,
|
|
600
|
+
field_name: typing.Literal[
|
|
601
|
+
"_else_branch",
|
|
602
|
+
b"_else_branch",
|
|
603
|
+
"else_branch",
|
|
604
|
+
b"else_branch",
|
|
605
|
+
"if_branch",
|
|
606
|
+
b"if_branch",
|
|
607
|
+
],
|
|
608
|
+
) -> builtins.bool: ...
|
|
609
|
+
def ClearField(
|
|
610
|
+
self,
|
|
611
|
+
field_name: typing.Literal[
|
|
612
|
+
"_else_branch",
|
|
613
|
+
b"_else_branch",
|
|
614
|
+
"elif_branches",
|
|
615
|
+
b"elif_branches",
|
|
616
|
+
"else_branch",
|
|
617
|
+
b"else_branch",
|
|
618
|
+
"if_branch",
|
|
619
|
+
b"if_branch",
|
|
620
|
+
],
|
|
621
|
+
) -> None: ...
|
|
622
|
+
def WhichOneof(
|
|
623
|
+
self, oneof_group: typing.Literal["_else_branch", b"_else_branch"]
|
|
624
|
+
) -> typing.Literal["else_branch"] | None: ...
|
|
625
|
+
|
|
626
|
+
Global___Conditional: typing_extensions.TypeAlias = Conditional
|
|
627
|
+
|
|
628
|
+
@typing.final
|
|
629
|
+
class IfBranch(google.protobuf.message.Message):
|
|
630
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
631
|
+
|
|
632
|
+
CONDITION_FIELD_NUMBER: builtins.int
|
|
633
|
+
SPAN_FIELD_NUMBER: builtins.int
|
|
634
|
+
BLOCK_BODY_FIELD_NUMBER: builtins.int
|
|
635
|
+
@property
|
|
636
|
+
def condition(self) -> Global___Expr: ...
|
|
637
|
+
@property
|
|
638
|
+
def span(self) -> Global___Span: ...
|
|
639
|
+
@property
|
|
640
|
+
def block_body(self) -> Global___Block: ...
|
|
641
|
+
def __init__(
|
|
642
|
+
self,
|
|
643
|
+
*,
|
|
644
|
+
condition: Global___Expr | None = ...,
|
|
645
|
+
span: Global___Span | None = ...,
|
|
646
|
+
block_body: Global___Block | None = ...,
|
|
647
|
+
) -> None: ...
|
|
648
|
+
def HasField(
|
|
649
|
+
self,
|
|
650
|
+
field_name: typing.Literal[
|
|
651
|
+
"block_body", b"block_body", "condition", b"condition", "span", b"span"
|
|
652
|
+
],
|
|
653
|
+
) -> builtins.bool: ...
|
|
654
|
+
def ClearField(
|
|
655
|
+
self,
|
|
656
|
+
field_name: typing.Literal[
|
|
657
|
+
"block_body", b"block_body", "condition", b"condition", "span", b"span"
|
|
658
|
+
],
|
|
659
|
+
) -> None: ...
|
|
660
|
+
|
|
661
|
+
Global___IfBranch: typing_extensions.TypeAlias = IfBranch
|
|
662
|
+
|
|
663
|
+
@typing.final
|
|
664
|
+
class ElifBranch(google.protobuf.message.Message):
|
|
665
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
666
|
+
|
|
667
|
+
CONDITION_FIELD_NUMBER: builtins.int
|
|
668
|
+
SPAN_FIELD_NUMBER: builtins.int
|
|
669
|
+
BLOCK_BODY_FIELD_NUMBER: builtins.int
|
|
670
|
+
@property
|
|
671
|
+
def condition(self) -> Global___Expr: ...
|
|
672
|
+
@property
|
|
673
|
+
def span(self) -> Global___Span: ...
|
|
674
|
+
@property
|
|
675
|
+
def block_body(self) -> Global___Block: ...
|
|
676
|
+
def __init__(
|
|
677
|
+
self,
|
|
678
|
+
*,
|
|
679
|
+
condition: Global___Expr | None = ...,
|
|
680
|
+
span: Global___Span | None = ...,
|
|
681
|
+
block_body: Global___Block | None = ...,
|
|
682
|
+
) -> None: ...
|
|
683
|
+
def HasField(
|
|
684
|
+
self,
|
|
685
|
+
field_name: typing.Literal[
|
|
686
|
+
"block_body", b"block_body", "condition", b"condition", "span", b"span"
|
|
687
|
+
],
|
|
688
|
+
) -> builtins.bool: ...
|
|
689
|
+
def ClearField(
|
|
690
|
+
self,
|
|
691
|
+
field_name: typing.Literal[
|
|
692
|
+
"block_body", b"block_body", "condition", b"condition", "span", b"span"
|
|
693
|
+
],
|
|
694
|
+
) -> None: ...
|
|
695
|
+
|
|
696
|
+
Global___ElifBranch: typing_extensions.TypeAlias = ElifBranch
|
|
697
|
+
|
|
698
|
+
@typing.final
|
|
699
|
+
class ElseBranch(google.protobuf.message.Message):
|
|
700
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
701
|
+
|
|
702
|
+
SPAN_FIELD_NUMBER: builtins.int
|
|
703
|
+
BLOCK_BODY_FIELD_NUMBER: builtins.int
|
|
704
|
+
@property
|
|
705
|
+
def span(self) -> Global___Span: ...
|
|
706
|
+
@property
|
|
707
|
+
def block_body(self) -> Global___Block: ...
|
|
708
|
+
def __init__(
|
|
709
|
+
self,
|
|
710
|
+
*,
|
|
711
|
+
span: Global___Span | None = ...,
|
|
712
|
+
block_body: Global___Block | None = ...,
|
|
713
|
+
) -> None: ...
|
|
714
|
+
def HasField(
|
|
715
|
+
self, field_name: typing.Literal["block_body", b"block_body", "span", b"span"]
|
|
716
|
+
) -> builtins.bool: ...
|
|
717
|
+
def ClearField(
|
|
718
|
+
self, field_name: typing.Literal["block_body", b"block_body", "span", b"span"]
|
|
719
|
+
) -> None: ...
|
|
720
|
+
|
|
721
|
+
Global___ElseBranch: typing_extensions.TypeAlias = ElseBranch
|
|
722
|
+
|
|
723
|
+
@typing.final
|
|
724
|
+
class TryExcept(google.protobuf.message.Message):
|
|
725
|
+
"""Try/except block"""
|
|
726
|
+
|
|
727
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
728
|
+
|
|
729
|
+
HANDLERS_FIELD_NUMBER: builtins.int
|
|
730
|
+
TRY_BLOCK_FIELD_NUMBER: builtins.int
|
|
731
|
+
@property
|
|
732
|
+
def handlers(
|
|
733
|
+
self,
|
|
734
|
+
) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
|
|
735
|
+
Global___ExceptHandler
|
|
736
|
+
]: ...
|
|
737
|
+
@property
|
|
738
|
+
def try_block(self) -> Global___Block: ...
|
|
739
|
+
def __init__(
|
|
740
|
+
self,
|
|
741
|
+
*,
|
|
742
|
+
handlers: collections.abc.Iterable[Global___ExceptHandler] | None = ...,
|
|
743
|
+
try_block: Global___Block | None = ...,
|
|
744
|
+
) -> None: ...
|
|
745
|
+
def HasField(self, field_name: typing.Literal["try_block", b"try_block"]) -> builtins.bool: ...
|
|
746
|
+
def ClearField(
|
|
747
|
+
self, field_name: typing.Literal["handlers", b"handlers", "try_block", b"try_block"]
|
|
748
|
+
) -> None: ...
|
|
749
|
+
|
|
750
|
+
Global___TryExcept: typing_extensions.TypeAlias = TryExcept
|
|
751
|
+
|
|
752
|
+
@typing.final
|
|
753
|
+
class ExceptHandler(google.protobuf.message.Message):
|
|
754
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
755
|
+
|
|
756
|
+
EXCEPTION_TYPES_FIELD_NUMBER: builtins.int
|
|
757
|
+
SPAN_FIELD_NUMBER: builtins.int
|
|
758
|
+
BLOCK_BODY_FIELD_NUMBER: builtins.int
|
|
759
|
+
@property
|
|
760
|
+
def exception_types(
|
|
761
|
+
self,
|
|
762
|
+
) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
|
763
|
+
"""Empty = catch all"""
|
|
764
|
+
|
|
765
|
+
@property
|
|
766
|
+
def span(self) -> Global___Span: ...
|
|
767
|
+
@property
|
|
768
|
+
def block_body(self) -> Global___Block: ...
|
|
769
|
+
def __init__(
|
|
770
|
+
self,
|
|
771
|
+
*,
|
|
772
|
+
exception_types: collections.abc.Iterable[builtins.str] | None = ...,
|
|
773
|
+
span: Global___Span | None = ...,
|
|
774
|
+
block_body: Global___Block | None = ...,
|
|
775
|
+
) -> None: ...
|
|
776
|
+
def HasField(
|
|
777
|
+
self, field_name: typing.Literal["block_body", b"block_body", "span", b"span"]
|
|
778
|
+
) -> builtins.bool: ...
|
|
779
|
+
def ClearField(
|
|
780
|
+
self,
|
|
781
|
+
field_name: typing.Literal[
|
|
782
|
+
"block_body", b"block_body", "exception_types", b"exception_types", "span", b"span"
|
|
783
|
+
],
|
|
784
|
+
) -> None: ...
|
|
785
|
+
|
|
786
|
+
Global___ExceptHandler: typing_extensions.TypeAlias = ExceptHandler
|
|
787
|
+
|
|
788
|
+
@typing.final
|
|
789
|
+
class ReturnStmt(google.protobuf.message.Message):
|
|
790
|
+
"""Return statement"""
|
|
791
|
+
|
|
792
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
793
|
+
|
|
794
|
+
VALUE_FIELD_NUMBER: builtins.int
|
|
795
|
+
@property
|
|
796
|
+
def value(self) -> Global___Expr: ...
|
|
797
|
+
def __init__(
|
|
798
|
+
self,
|
|
799
|
+
*,
|
|
800
|
+
value: Global___Expr | None = ...,
|
|
801
|
+
) -> None: ...
|
|
802
|
+
def HasField(
|
|
803
|
+
self, field_name: typing.Literal["_value", b"_value", "value", b"value"]
|
|
804
|
+
) -> builtins.bool: ...
|
|
805
|
+
def ClearField(
|
|
806
|
+
self, field_name: typing.Literal["_value", b"_value", "value", b"value"]
|
|
807
|
+
) -> None: ...
|
|
808
|
+
def WhichOneof(
|
|
809
|
+
self, oneof_group: typing.Literal["_value", b"_value"]
|
|
810
|
+
) -> typing.Literal["value"] | None: ...
|
|
811
|
+
|
|
812
|
+
Global___ReturnStmt: typing_extensions.TypeAlias = ReturnStmt
|
|
813
|
+
|
|
814
|
+
@typing.final
|
|
815
|
+
class ExprStmt(google.protobuf.message.Message):
|
|
816
|
+
"""Expression as statement"""
|
|
817
|
+
|
|
818
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
819
|
+
|
|
820
|
+
EXPR_FIELD_NUMBER: builtins.int
|
|
821
|
+
@property
|
|
822
|
+
def expr(self) -> Global___Expr: ...
|
|
823
|
+
def __init__(
|
|
824
|
+
self,
|
|
825
|
+
*,
|
|
826
|
+
expr: Global___Expr | None = ...,
|
|
827
|
+
) -> None: ...
|
|
828
|
+
def HasField(self, field_name: typing.Literal["expr", b"expr"]) -> builtins.bool: ...
|
|
829
|
+
def ClearField(self, field_name: typing.Literal["expr", b"expr"]) -> None: ...
|
|
830
|
+
|
|
831
|
+
Global___ExprStmt: typing_extensions.TypeAlias = ExprStmt
|
|
832
|
+
|
|
833
|
+
@typing.final
|
|
834
|
+
class Expr(google.protobuf.message.Message):
|
|
835
|
+
"""-----------------------------------------------------------------------------
|
|
836
|
+
Expressions
|
|
837
|
+
-----------------------------------------------------------------------------
|
|
838
|
+
"""
|
|
839
|
+
|
|
840
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
841
|
+
|
|
842
|
+
LITERAL_FIELD_NUMBER: builtins.int
|
|
843
|
+
VARIABLE_FIELD_NUMBER: builtins.int
|
|
844
|
+
BINARY_OP_FIELD_NUMBER: builtins.int
|
|
845
|
+
UNARY_OP_FIELD_NUMBER: builtins.int
|
|
846
|
+
LIST_FIELD_NUMBER: builtins.int
|
|
847
|
+
DICT_FIELD_NUMBER: builtins.int
|
|
848
|
+
INDEX_FIELD_NUMBER: builtins.int
|
|
849
|
+
DOT_FIELD_NUMBER: builtins.int
|
|
850
|
+
FUNCTION_CALL_FIELD_NUMBER: builtins.int
|
|
851
|
+
ACTION_CALL_FIELD_NUMBER: builtins.int
|
|
852
|
+
PARALLEL_EXPR_FIELD_NUMBER: builtins.int
|
|
853
|
+
SPREAD_EXPR_FIELD_NUMBER: builtins.int
|
|
854
|
+
SPAN_FIELD_NUMBER: builtins.int
|
|
855
|
+
@property
|
|
856
|
+
def literal(self) -> Global___Literal: ...
|
|
857
|
+
@property
|
|
858
|
+
def variable(self) -> Global___Variable: ...
|
|
859
|
+
@property
|
|
860
|
+
def binary_op(self) -> Global___BinaryOp: ...
|
|
861
|
+
@property
|
|
862
|
+
def unary_op(self) -> Global___UnaryOp: ...
|
|
863
|
+
@property
|
|
864
|
+
def list(self) -> Global___ListExpr: ...
|
|
865
|
+
@property
|
|
866
|
+
def dict(self) -> Global___DictExpr: ...
|
|
867
|
+
@property
|
|
868
|
+
def index(self) -> Global___IndexAccess: ...
|
|
869
|
+
@property
|
|
870
|
+
def dot(self) -> Global___DotAccess: ...
|
|
871
|
+
@property
|
|
872
|
+
def function_call(self) -> Global___FunctionCall: ...
|
|
873
|
+
@property
|
|
874
|
+
def action_call(self) -> Global___ActionCall: ...
|
|
875
|
+
@property
|
|
876
|
+
def parallel_expr(self) -> Global___ParallelExpr:
|
|
877
|
+
"""Parallel block as expression"""
|
|
878
|
+
|
|
879
|
+
@property
|
|
880
|
+
def spread_expr(self) -> Global___SpreadExpr:
|
|
881
|
+
"""Spread action as expression"""
|
|
882
|
+
|
|
883
|
+
@property
|
|
884
|
+
def span(self) -> Global___Span: ...
|
|
885
|
+
def __init__(
|
|
886
|
+
self,
|
|
887
|
+
*,
|
|
888
|
+
literal: Global___Literal | None = ...,
|
|
889
|
+
variable: Global___Variable | None = ...,
|
|
890
|
+
binary_op: Global___BinaryOp | None = ...,
|
|
891
|
+
unary_op: Global___UnaryOp | None = ...,
|
|
892
|
+
list: Global___ListExpr | None = ...,
|
|
893
|
+
dict: Global___DictExpr | None = ...,
|
|
894
|
+
index: Global___IndexAccess | None = ...,
|
|
895
|
+
dot: Global___DotAccess | None = ...,
|
|
896
|
+
function_call: Global___FunctionCall | None = ...,
|
|
897
|
+
action_call: Global___ActionCall | None = ...,
|
|
898
|
+
parallel_expr: Global___ParallelExpr | None = ...,
|
|
899
|
+
spread_expr: Global___SpreadExpr | None = ...,
|
|
900
|
+
span: Global___Span | None = ...,
|
|
901
|
+
) -> None: ...
|
|
902
|
+
def HasField(
|
|
903
|
+
self,
|
|
904
|
+
field_name: typing.Literal[
|
|
905
|
+
"action_call",
|
|
906
|
+
b"action_call",
|
|
907
|
+
"binary_op",
|
|
908
|
+
b"binary_op",
|
|
909
|
+
"dict",
|
|
910
|
+
b"dict",
|
|
911
|
+
"dot",
|
|
912
|
+
b"dot",
|
|
913
|
+
"function_call",
|
|
914
|
+
b"function_call",
|
|
915
|
+
"index",
|
|
916
|
+
b"index",
|
|
917
|
+
"kind",
|
|
918
|
+
b"kind",
|
|
919
|
+
"list",
|
|
920
|
+
b"list",
|
|
921
|
+
"literal",
|
|
922
|
+
b"literal",
|
|
923
|
+
"parallel_expr",
|
|
924
|
+
b"parallel_expr",
|
|
925
|
+
"span",
|
|
926
|
+
b"span",
|
|
927
|
+
"spread_expr",
|
|
928
|
+
b"spread_expr",
|
|
929
|
+
"unary_op",
|
|
930
|
+
b"unary_op",
|
|
931
|
+
"variable",
|
|
932
|
+
b"variable",
|
|
933
|
+
],
|
|
934
|
+
) -> builtins.bool: ...
|
|
935
|
+
def ClearField(
|
|
936
|
+
self,
|
|
937
|
+
field_name: typing.Literal[
|
|
938
|
+
"action_call",
|
|
939
|
+
b"action_call",
|
|
940
|
+
"binary_op",
|
|
941
|
+
b"binary_op",
|
|
942
|
+
"dict",
|
|
943
|
+
b"dict",
|
|
944
|
+
"dot",
|
|
945
|
+
b"dot",
|
|
946
|
+
"function_call",
|
|
947
|
+
b"function_call",
|
|
948
|
+
"index",
|
|
949
|
+
b"index",
|
|
950
|
+
"kind",
|
|
951
|
+
b"kind",
|
|
952
|
+
"list",
|
|
953
|
+
b"list",
|
|
954
|
+
"literal",
|
|
955
|
+
b"literal",
|
|
956
|
+
"parallel_expr",
|
|
957
|
+
b"parallel_expr",
|
|
958
|
+
"span",
|
|
959
|
+
b"span",
|
|
960
|
+
"spread_expr",
|
|
961
|
+
b"spread_expr",
|
|
962
|
+
"unary_op",
|
|
963
|
+
b"unary_op",
|
|
964
|
+
"variable",
|
|
965
|
+
b"variable",
|
|
966
|
+
],
|
|
967
|
+
) -> None: ...
|
|
968
|
+
def WhichOneof(
|
|
969
|
+
self, oneof_group: typing.Literal["kind", b"kind"]
|
|
970
|
+
) -> (
|
|
971
|
+
typing.Literal[
|
|
972
|
+
"literal",
|
|
973
|
+
"variable",
|
|
974
|
+
"binary_op",
|
|
975
|
+
"unary_op",
|
|
976
|
+
"list",
|
|
977
|
+
"dict",
|
|
978
|
+
"index",
|
|
979
|
+
"dot",
|
|
980
|
+
"function_call",
|
|
981
|
+
"action_call",
|
|
982
|
+
"parallel_expr",
|
|
983
|
+
"spread_expr",
|
|
984
|
+
]
|
|
985
|
+
| None
|
|
986
|
+
): ...
|
|
987
|
+
|
|
988
|
+
Global___Expr: typing_extensions.TypeAlias = Expr
|
|
989
|
+
|
|
990
|
+
@typing.final
|
|
991
|
+
class Literal(google.protobuf.message.Message):
|
|
992
|
+
"""Literals: 42, 3.14, "hello", True, False"""
|
|
993
|
+
|
|
994
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
995
|
+
|
|
996
|
+
INT_VALUE_FIELD_NUMBER: builtins.int
|
|
997
|
+
FLOAT_VALUE_FIELD_NUMBER: builtins.int
|
|
998
|
+
STRING_VALUE_FIELD_NUMBER: builtins.int
|
|
999
|
+
BOOL_VALUE_FIELD_NUMBER: builtins.int
|
|
1000
|
+
IS_NONE_FIELD_NUMBER: builtins.int
|
|
1001
|
+
int_value: builtins.int
|
|
1002
|
+
float_value: builtins.float
|
|
1003
|
+
string_value: builtins.str
|
|
1004
|
+
bool_value: builtins.bool
|
|
1005
|
+
is_none: builtins.bool
|
|
1006
|
+
"""true if None"""
|
|
1007
|
+
def __init__(
|
|
1008
|
+
self,
|
|
1009
|
+
*,
|
|
1010
|
+
int_value: builtins.int = ...,
|
|
1011
|
+
float_value: builtins.float = ...,
|
|
1012
|
+
string_value: builtins.str = ...,
|
|
1013
|
+
bool_value: builtins.bool = ...,
|
|
1014
|
+
is_none: builtins.bool = ...,
|
|
1015
|
+
) -> None: ...
|
|
1016
|
+
def HasField(
|
|
1017
|
+
self,
|
|
1018
|
+
field_name: typing.Literal[
|
|
1019
|
+
"bool_value",
|
|
1020
|
+
b"bool_value",
|
|
1021
|
+
"float_value",
|
|
1022
|
+
b"float_value",
|
|
1023
|
+
"int_value",
|
|
1024
|
+
b"int_value",
|
|
1025
|
+
"is_none",
|
|
1026
|
+
b"is_none",
|
|
1027
|
+
"string_value",
|
|
1028
|
+
b"string_value",
|
|
1029
|
+
"value",
|
|
1030
|
+
b"value",
|
|
1031
|
+
],
|
|
1032
|
+
) -> builtins.bool: ...
|
|
1033
|
+
def ClearField(
|
|
1034
|
+
self,
|
|
1035
|
+
field_name: typing.Literal[
|
|
1036
|
+
"bool_value",
|
|
1037
|
+
b"bool_value",
|
|
1038
|
+
"float_value",
|
|
1039
|
+
b"float_value",
|
|
1040
|
+
"int_value",
|
|
1041
|
+
b"int_value",
|
|
1042
|
+
"is_none",
|
|
1043
|
+
b"is_none",
|
|
1044
|
+
"string_value",
|
|
1045
|
+
b"string_value",
|
|
1046
|
+
"value",
|
|
1047
|
+
b"value",
|
|
1048
|
+
],
|
|
1049
|
+
) -> None: ...
|
|
1050
|
+
def WhichOneof(
|
|
1051
|
+
self, oneof_group: typing.Literal["value", b"value"]
|
|
1052
|
+
) -> (
|
|
1053
|
+
typing.Literal["int_value", "float_value", "string_value", "bool_value", "is_none"] | None
|
|
1054
|
+
): ...
|
|
1055
|
+
|
|
1056
|
+
Global___Literal: typing_extensions.TypeAlias = Literal
|
|
1057
|
+
|
|
1058
|
+
@typing.final
|
|
1059
|
+
class Variable(google.protobuf.message.Message):
|
|
1060
|
+
"""Variable reference: foo"""
|
|
1061
|
+
|
|
1062
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1063
|
+
|
|
1064
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
1065
|
+
name: builtins.str
|
|
1066
|
+
def __init__(
|
|
1067
|
+
self,
|
|
1068
|
+
*,
|
|
1069
|
+
name: builtins.str = ...,
|
|
1070
|
+
) -> None: ...
|
|
1071
|
+
def ClearField(self, field_name: typing.Literal["name", b"name"]) -> None: ...
|
|
1072
|
+
|
|
1073
|
+
Global___Variable: typing_extensions.TypeAlias = Variable
|
|
1074
|
+
|
|
1075
|
+
@typing.final
|
|
1076
|
+
class BinaryOp(google.protobuf.message.Message):
|
|
1077
|
+
"""Binary operation: a + b, x and y, etc."""
|
|
1078
|
+
|
|
1079
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1080
|
+
|
|
1081
|
+
LEFT_FIELD_NUMBER: builtins.int
|
|
1082
|
+
OP_FIELD_NUMBER: builtins.int
|
|
1083
|
+
RIGHT_FIELD_NUMBER: builtins.int
|
|
1084
|
+
op: Global___BinaryOperator.ValueType
|
|
1085
|
+
@property
|
|
1086
|
+
def left(self) -> Global___Expr: ...
|
|
1087
|
+
@property
|
|
1088
|
+
def right(self) -> Global___Expr: ...
|
|
1089
|
+
def __init__(
|
|
1090
|
+
self,
|
|
1091
|
+
*,
|
|
1092
|
+
left: Global___Expr | None = ...,
|
|
1093
|
+
op: Global___BinaryOperator.ValueType = ...,
|
|
1094
|
+
right: Global___Expr | None = ...,
|
|
1095
|
+
) -> None: ...
|
|
1096
|
+
def HasField(
|
|
1097
|
+
self, field_name: typing.Literal["left", b"left", "right", b"right"]
|
|
1098
|
+
) -> builtins.bool: ...
|
|
1099
|
+
def ClearField(
|
|
1100
|
+
self, field_name: typing.Literal["left", b"left", "op", b"op", "right", b"right"]
|
|
1101
|
+
) -> None: ...
|
|
1102
|
+
|
|
1103
|
+
Global___BinaryOp: typing_extensions.TypeAlias = BinaryOp
|
|
1104
|
+
|
|
1105
|
+
@typing.final
|
|
1106
|
+
class UnaryOp(google.protobuf.message.Message):
|
|
1107
|
+
"""Unary operation: -x, not x"""
|
|
1108
|
+
|
|
1109
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1110
|
+
|
|
1111
|
+
OP_FIELD_NUMBER: builtins.int
|
|
1112
|
+
OPERAND_FIELD_NUMBER: builtins.int
|
|
1113
|
+
op: Global___UnaryOperator.ValueType
|
|
1114
|
+
@property
|
|
1115
|
+
def operand(self) -> Global___Expr: ...
|
|
1116
|
+
def __init__(
|
|
1117
|
+
self,
|
|
1118
|
+
*,
|
|
1119
|
+
op: Global___UnaryOperator.ValueType = ...,
|
|
1120
|
+
operand: Global___Expr | None = ...,
|
|
1121
|
+
) -> None: ...
|
|
1122
|
+
def HasField(self, field_name: typing.Literal["operand", b"operand"]) -> builtins.bool: ...
|
|
1123
|
+
def ClearField(
|
|
1124
|
+
self, field_name: typing.Literal["op", b"op", "operand", b"operand"]
|
|
1125
|
+
) -> None: ...
|
|
1126
|
+
|
|
1127
|
+
Global___UnaryOp: typing_extensions.TypeAlias = UnaryOp
|
|
1128
|
+
|
|
1129
|
+
@typing.final
|
|
1130
|
+
class ListExpr(google.protobuf.message.Message):
|
|
1131
|
+
"""List literal: [1, 2, 3]"""
|
|
1132
|
+
|
|
1133
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1134
|
+
|
|
1135
|
+
ELEMENTS_FIELD_NUMBER: builtins.int
|
|
1136
|
+
@property
|
|
1137
|
+
def elements(
|
|
1138
|
+
self,
|
|
1139
|
+
) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Expr]: ...
|
|
1140
|
+
def __init__(
|
|
1141
|
+
self,
|
|
1142
|
+
*,
|
|
1143
|
+
elements: collections.abc.Iterable[Global___Expr] | None = ...,
|
|
1144
|
+
) -> None: ...
|
|
1145
|
+
def ClearField(self, field_name: typing.Literal["elements", b"elements"]) -> None: ...
|
|
1146
|
+
|
|
1147
|
+
Global___ListExpr: typing_extensions.TypeAlias = ListExpr
|
|
1148
|
+
|
|
1149
|
+
@typing.final
|
|
1150
|
+
class DictExpr(google.protobuf.message.Message):
|
|
1151
|
+
"""Dict literal: {"a": 1, "b": 2}"""
|
|
1152
|
+
|
|
1153
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1154
|
+
|
|
1155
|
+
ENTRIES_FIELD_NUMBER: builtins.int
|
|
1156
|
+
@property
|
|
1157
|
+
def entries(
|
|
1158
|
+
self,
|
|
1159
|
+
) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
|
|
1160
|
+
Global___DictEntry
|
|
1161
|
+
]: ...
|
|
1162
|
+
def __init__(
|
|
1163
|
+
self,
|
|
1164
|
+
*,
|
|
1165
|
+
entries: collections.abc.Iterable[Global___DictEntry] | None = ...,
|
|
1166
|
+
) -> None: ...
|
|
1167
|
+
def ClearField(self, field_name: typing.Literal["entries", b"entries"]) -> None: ...
|
|
1168
|
+
|
|
1169
|
+
Global___DictExpr: typing_extensions.TypeAlias = DictExpr
|
|
1170
|
+
|
|
1171
|
+
@typing.final
|
|
1172
|
+
class DictEntry(google.protobuf.message.Message):
|
|
1173
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1174
|
+
|
|
1175
|
+
KEY_FIELD_NUMBER: builtins.int
|
|
1176
|
+
VALUE_FIELD_NUMBER: builtins.int
|
|
1177
|
+
@property
|
|
1178
|
+
def key(self) -> Global___Expr: ...
|
|
1179
|
+
@property
|
|
1180
|
+
def value(self) -> Global___Expr: ...
|
|
1181
|
+
def __init__(
|
|
1182
|
+
self,
|
|
1183
|
+
*,
|
|
1184
|
+
key: Global___Expr | None = ...,
|
|
1185
|
+
value: Global___Expr | None = ...,
|
|
1186
|
+
) -> None: ...
|
|
1187
|
+
def HasField(
|
|
1188
|
+
self, field_name: typing.Literal["key", b"key", "value", b"value"]
|
|
1189
|
+
) -> builtins.bool: ...
|
|
1190
|
+
def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
|
|
1191
|
+
|
|
1192
|
+
Global___DictEntry: typing_extensions.TypeAlias = DictEntry
|
|
1193
|
+
|
|
1194
|
+
@typing.final
|
|
1195
|
+
class IndexAccess(google.protobuf.message.Message):
|
|
1196
|
+
"""Index access: items[0]"""
|
|
1197
|
+
|
|
1198
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1199
|
+
|
|
1200
|
+
OBJECT_FIELD_NUMBER: builtins.int
|
|
1201
|
+
INDEX_FIELD_NUMBER: builtins.int
|
|
1202
|
+
@property
|
|
1203
|
+
def object(self) -> Global___Expr: ...
|
|
1204
|
+
@property
|
|
1205
|
+
def index(self) -> Global___Expr: ...
|
|
1206
|
+
def __init__(
|
|
1207
|
+
self,
|
|
1208
|
+
*,
|
|
1209
|
+
object: Global___Expr | None = ...,
|
|
1210
|
+
index: Global___Expr | None = ...,
|
|
1211
|
+
) -> None: ...
|
|
1212
|
+
def HasField(
|
|
1213
|
+
self, field_name: typing.Literal["index", b"index", "object", b"object"]
|
|
1214
|
+
) -> builtins.bool: ...
|
|
1215
|
+
def ClearField(
|
|
1216
|
+
self, field_name: typing.Literal["index", b"index", "object", b"object"]
|
|
1217
|
+
) -> None: ...
|
|
1218
|
+
|
|
1219
|
+
Global___IndexAccess: typing_extensions.TypeAlias = IndexAccess
|
|
1220
|
+
|
|
1221
|
+
@typing.final
|
|
1222
|
+
class DotAccess(google.protobuf.message.Message):
|
|
1223
|
+
"""Dot access: obj.attr"""
|
|
1224
|
+
|
|
1225
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1226
|
+
|
|
1227
|
+
OBJECT_FIELD_NUMBER: builtins.int
|
|
1228
|
+
ATTRIBUTE_FIELD_NUMBER: builtins.int
|
|
1229
|
+
attribute: builtins.str
|
|
1230
|
+
@property
|
|
1231
|
+
def object(self) -> Global___Expr: ...
|
|
1232
|
+
def __init__(
|
|
1233
|
+
self,
|
|
1234
|
+
*,
|
|
1235
|
+
object: Global___Expr | None = ...,
|
|
1236
|
+
attribute: builtins.str = ...,
|
|
1237
|
+
) -> None: ...
|
|
1238
|
+
def HasField(self, field_name: typing.Literal["object", b"object"]) -> builtins.bool: ...
|
|
1239
|
+
def ClearField(
|
|
1240
|
+
self, field_name: typing.Literal["attribute", b"attribute", "object", b"object"]
|
|
1241
|
+
) -> None: ...
|
|
1242
|
+
|
|
1243
|
+
Global___DotAccess: typing_extensions.TypeAlias = DotAccess
|
|
1244
|
+
|
|
1245
|
+
@typing.final
|
|
1246
|
+
class FunctionCall(google.protobuf.message.Message):
|
|
1247
|
+
"""Function call: range(10), len(items)
|
|
1248
|
+
Built-in functions can use positional args, user functions use kwargs
|
|
1249
|
+
"""
|
|
1250
|
+
|
|
1251
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1252
|
+
|
|
1253
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
1254
|
+
ARGS_FIELD_NUMBER: builtins.int
|
|
1255
|
+
KWARGS_FIELD_NUMBER: builtins.int
|
|
1256
|
+
name: builtins.str
|
|
1257
|
+
@property
|
|
1258
|
+
def args(
|
|
1259
|
+
self,
|
|
1260
|
+
) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Expr]:
|
|
1261
|
+
"""Positional arguments (for built-ins)"""
|
|
1262
|
+
|
|
1263
|
+
@property
|
|
1264
|
+
def kwargs(
|
|
1265
|
+
self,
|
|
1266
|
+
) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Kwarg]:
|
|
1267
|
+
"""Keyword arguments"""
|
|
1268
|
+
|
|
1269
|
+
def __init__(
|
|
1270
|
+
self,
|
|
1271
|
+
*,
|
|
1272
|
+
name: builtins.str = ...,
|
|
1273
|
+
args: collections.abc.Iterable[Global___Expr] | None = ...,
|
|
1274
|
+
kwargs: collections.abc.Iterable[Global___Kwarg] | None = ...,
|
|
1275
|
+
) -> None: ...
|
|
1276
|
+
def ClearField(
|
|
1277
|
+
self, field_name: typing.Literal["args", b"args", "kwargs", b"kwargs", "name", b"name"]
|
|
1278
|
+
) -> None: ...
|
|
1279
|
+
|
|
1280
|
+
Global___FunctionCall: typing_extensions.TypeAlias = FunctionCall
|
|
1281
|
+
|
|
1282
|
+
@typing.final
|
|
1283
|
+
class Kwarg(google.protobuf.message.Message):
|
|
1284
|
+
"""Keyword argument: name=value"""
|
|
1285
|
+
|
|
1286
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1287
|
+
|
|
1288
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
1289
|
+
VALUE_FIELD_NUMBER: builtins.int
|
|
1290
|
+
name: builtins.str
|
|
1291
|
+
@property
|
|
1292
|
+
def value(self) -> Global___Expr: ...
|
|
1293
|
+
def __init__(
|
|
1294
|
+
self,
|
|
1295
|
+
*,
|
|
1296
|
+
name: builtins.str = ...,
|
|
1297
|
+
value: Global___Expr | None = ...,
|
|
1298
|
+
) -> None: ...
|
|
1299
|
+
def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ...
|
|
1300
|
+
def ClearField(
|
|
1301
|
+
self, field_name: typing.Literal["name", b"name", "value", b"value"]
|
|
1302
|
+
) -> None: ...
|
|
1303
|
+
|
|
1304
|
+
Global___Kwarg: typing_extensions.TypeAlias = Kwarg
|
|
1305
|
+
|
|
1306
|
+
@typing.final
|
|
1307
|
+
class ParallelExpr(google.protobuf.message.Message):
|
|
1308
|
+
"""Parallel expression: concurrent execution of multiple calls, returns list
|
|
1309
|
+
Used in assignments: a, b = parallel: @x() @y()
|
|
1310
|
+
"""
|
|
1311
|
+
|
|
1312
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1313
|
+
|
|
1314
|
+
CALLS_FIELD_NUMBER: builtins.int
|
|
1315
|
+
@property
|
|
1316
|
+
def calls(
|
|
1317
|
+
self,
|
|
1318
|
+
) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Call]:
|
|
1319
|
+
"""Actions or function calls to run in parallel"""
|
|
1320
|
+
|
|
1321
|
+
def __init__(
|
|
1322
|
+
self,
|
|
1323
|
+
*,
|
|
1324
|
+
calls: collections.abc.Iterable[Global___Call] | None = ...,
|
|
1325
|
+
) -> None: ...
|
|
1326
|
+
def ClearField(self, field_name: typing.Literal["calls", b"calls"]) -> None: ...
|
|
1327
|
+
|
|
1328
|
+
Global___ParallelExpr: typing_extensions.TypeAlias = ParallelExpr
|
|
1329
|
+
|
|
1330
|
+
@typing.final
|
|
1331
|
+
class SpreadExpr(google.protobuf.message.Message):
|
|
1332
|
+
"""Spread expression: parallel execution over a collection, returns list
|
|
1333
|
+
Used in assignments: results = spread items:item -> @action(item=item)
|
|
1334
|
+
"""
|
|
1335
|
+
|
|
1336
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1337
|
+
|
|
1338
|
+
COLLECTION_FIELD_NUMBER: builtins.int
|
|
1339
|
+
LOOP_VAR_FIELD_NUMBER: builtins.int
|
|
1340
|
+
ACTION_FIELD_NUMBER: builtins.int
|
|
1341
|
+
loop_var: builtins.str
|
|
1342
|
+
"""Variable name for each item"""
|
|
1343
|
+
@property
|
|
1344
|
+
def collection(self) -> Global___Expr:
|
|
1345
|
+
"""The collection to iterate"""
|
|
1346
|
+
|
|
1347
|
+
@property
|
|
1348
|
+
def action(self) -> Global___ActionCall:
|
|
1349
|
+
"""The action to call per item"""
|
|
1350
|
+
|
|
1351
|
+
def __init__(
|
|
1352
|
+
self,
|
|
1353
|
+
*,
|
|
1354
|
+
collection: Global___Expr | None = ...,
|
|
1355
|
+
loop_var: builtins.str = ...,
|
|
1356
|
+
action: Global___ActionCall | None = ...,
|
|
1357
|
+
) -> None: ...
|
|
1358
|
+
def HasField(
|
|
1359
|
+
self, field_name: typing.Literal["action", b"action", "collection", b"collection"]
|
|
1360
|
+
) -> builtins.bool: ...
|
|
1361
|
+
def ClearField(
|
|
1362
|
+
self,
|
|
1363
|
+
field_name: typing.Literal[
|
|
1364
|
+
"action", b"action", "collection", b"collection", "loop_var", b"loop_var"
|
|
1365
|
+
],
|
|
1366
|
+
) -> None: ...
|
|
1367
|
+
|
|
1368
|
+
Global___SpreadExpr: typing_extensions.TypeAlias = SpreadExpr
|
|
1369
|
+
|
|
1370
|
+
@typing.final
|
|
1371
|
+
class PolicyBracket(google.protobuf.message.Message):
|
|
1372
|
+
"""-----------------------------------------------------------------------------
|
|
1373
|
+
Policies (for actions)
|
|
1374
|
+
-----------------------------------------------------------------------------
|
|
1375
|
+
|
|
1376
|
+
Policy bracket on an action call
|
|
1377
|
+
"""
|
|
1378
|
+
|
|
1379
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1380
|
+
|
|
1381
|
+
RETRY_FIELD_NUMBER: builtins.int
|
|
1382
|
+
TIMEOUT_FIELD_NUMBER: builtins.int
|
|
1383
|
+
@property
|
|
1384
|
+
def retry(self) -> Global___RetryPolicy: ...
|
|
1385
|
+
@property
|
|
1386
|
+
def timeout(self) -> Global___TimeoutPolicy: ...
|
|
1387
|
+
def __init__(
|
|
1388
|
+
self,
|
|
1389
|
+
*,
|
|
1390
|
+
retry: Global___RetryPolicy | None = ...,
|
|
1391
|
+
timeout: Global___TimeoutPolicy | None = ...,
|
|
1392
|
+
) -> None: ...
|
|
1393
|
+
def HasField(
|
|
1394
|
+
self, field_name: typing.Literal["kind", b"kind", "retry", b"retry", "timeout", b"timeout"]
|
|
1395
|
+
) -> builtins.bool: ...
|
|
1396
|
+
def ClearField(
|
|
1397
|
+
self, field_name: typing.Literal["kind", b"kind", "retry", b"retry", "timeout", b"timeout"]
|
|
1398
|
+
) -> None: ...
|
|
1399
|
+
def WhichOneof(
|
|
1400
|
+
self, oneof_group: typing.Literal["kind", b"kind"]
|
|
1401
|
+
) -> typing.Literal["retry", "timeout"] | None: ...
|
|
1402
|
+
|
|
1403
|
+
Global___PolicyBracket: typing_extensions.TypeAlias = PolicyBracket
|
|
1404
|
+
|
|
1405
|
+
@typing.final
|
|
1406
|
+
class RetryPolicy(google.protobuf.message.Message):
|
|
1407
|
+
"""Retry policy: [ExceptionType -> retry: 3, backoff: 60s]"""
|
|
1408
|
+
|
|
1409
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1410
|
+
|
|
1411
|
+
EXCEPTION_TYPES_FIELD_NUMBER: builtins.int
|
|
1412
|
+
MAX_RETRIES_FIELD_NUMBER: builtins.int
|
|
1413
|
+
BACKOFF_FIELD_NUMBER: builtins.int
|
|
1414
|
+
max_retries: builtins.int
|
|
1415
|
+
@property
|
|
1416
|
+
def exception_types(
|
|
1417
|
+
self,
|
|
1418
|
+
) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
|
1419
|
+
"""Empty = catch all"""
|
|
1420
|
+
|
|
1421
|
+
@property
|
|
1422
|
+
def backoff(self) -> Global___Duration: ...
|
|
1423
|
+
def __init__(
|
|
1424
|
+
self,
|
|
1425
|
+
*,
|
|
1426
|
+
exception_types: collections.abc.Iterable[builtins.str] | None = ...,
|
|
1427
|
+
max_retries: builtins.int = ...,
|
|
1428
|
+
backoff: Global___Duration | None = ...,
|
|
1429
|
+
) -> None: ...
|
|
1430
|
+
def HasField(self, field_name: typing.Literal["backoff", b"backoff"]) -> builtins.bool: ...
|
|
1431
|
+
def ClearField(
|
|
1432
|
+
self,
|
|
1433
|
+
field_name: typing.Literal[
|
|
1434
|
+
"backoff",
|
|
1435
|
+
b"backoff",
|
|
1436
|
+
"exception_types",
|
|
1437
|
+
b"exception_types",
|
|
1438
|
+
"max_retries",
|
|
1439
|
+
b"max_retries",
|
|
1440
|
+
],
|
|
1441
|
+
) -> None: ...
|
|
1442
|
+
|
|
1443
|
+
Global___RetryPolicy: typing_extensions.TypeAlias = RetryPolicy
|
|
1444
|
+
|
|
1445
|
+
@typing.final
|
|
1446
|
+
class TimeoutPolicy(google.protobuf.message.Message):
|
|
1447
|
+
"""Timeout policy: [timeout: 2m]"""
|
|
1448
|
+
|
|
1449
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1450
|
+
|
|
1451
|
+
TIMEOUT_FIELD_NUMBER: builtins.int
|
|
1452
|
+
@property
|
|
1453
|
+
def timeout(self) -> Global___Duration: ...
|
|
1454
|
+
def __init__(
|
|
1455
|
+
self,
|
|
1456
|
+
*,
|
|
1457
|
+
timeout: Global___Duration | None = ...,
|
|
1458
|
+
) -> None: ...
|
|
1459
|
+
def HasField(self, field_name: typing.Literal["timeout", b"timeout"]) -> builtins.bool: ...
|
|
1460
|
+
def ClearField(self, field_name: typing.Literal["timeout", b"timeout"]) -> None: ...
|
|
1461
|
+
|
|
1462
|
+
Global___TimeoutPolicy: typing_extensions.TypeAlias = TimeoutPolicy
|
|
1463
|
+
|
|
1464
|
+
@typing.final
|
|
1465
|
+
class Duration(google.protobuf.message.Message):
|
|
1466
|
+
"""Duration value (e.g., 30s, 2m, 1h)"""
|
|
1467
|
+
|
|
1468
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1469
|
+
|
|
1470
|
+
SECONDS_FIELD_NUMBER: builtins.int
|
|
1471
|
+
seconds: builtins.int
|
|
1472
|
+
def __init__(
|
|
1473
|
+
self,
|
|
1474
|
+
*,
|
|
1475
|
+
seconds: builtins.int = ...,
|
|
1476
|
+
) -> None: ...
|
|
1477
|
+
def ClearField(self, field_name: typing.Literal["seconds", b"seconds"]) -> None: ...
|
|
1478
|
+
|
|
1479
|
+
Global___Duration: typing_extensions.TypeAlias = Duration
|
|
1480
|
+
|
|
1481
|
+
@typing.final
|
|
1482
|
+
class Span(google.protobuf.message.Message):
|
|
1483
|
+
"""-----------------------------------------------------------------------------
|
|
1484
|
+
Source Location
|
|
1485
|
+
-----------------------------------------------------------------------------
|
|
1486
|
+
|
|
1487
|
+
Source span for error reporting
|
|
1488
|
+
"""
|
|
1489
|
+
|
|
1490
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1491
|
+
|
|
1492
|
+
START_LINE_FIELD_NUMBER: builtins.int
|
|
1493
|
+
START_COL_FIELD_NUMBER: builtins.int
|
|
1494
|
+
END_LINE_FIELD_NUMBER: builtins.int
|
|
1495
|
+
END_COL_FIELD_NUMBER: builtins.int
|
|
1496
|
+
start_line: builtins.int
|
|
1497
|
+
start_col: builtins.int
|
|
1498
|
+
end_line: builtins.int
|
|
1499
|
+
end_col: builtins.int
|
|
1500
|
+
def __init__(
|
|
1501
|
+
self,
|
|
1502
|
+
*,
|
|
1503
|
+
start_line: builtins.int = ...,
|
|
1504
|
+
start_col: builtins.int = ...,
|
|
1505
|
+
end_line: builtins.int = ...,
|
|
1506
|
+
end_col: builtins.int = ...,
|
|
1507
|
+
) -> None: ...
|
|
1508
|
+
def ClearField(
|
|
1509
|
+
self,
|
|
1510
|
+
field_name: typing.Literal[
|
|
1511
|
+
"end_col",
|
|
1512
|
+
b"end_col",
|
|
1513
|
+
"end_line",
|
|
1514
|
+
b"end_line",
|
|
1515
|
+
"start_col",
|
|
1516
|
+
b"start_col",
|
|
1517
|
+
"start_line",
|
|
1518
|
+
b"start_line",
|
|
1519
|
+
],
|
|
1520
|
+
) -> None: ...
|
|
1521
|
+
|
|
1522
|
+
Global___Span: typing_extensions.TypeAlias = Span
|