rappel 0.4.1__py3-none-win_amd64.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.
Potentially problematic release.
This version of rappel might be problematic. Click here for more details.
- proto/ast_pb2.py +117 -0
- proto/ast_pb2.pyi +1609 -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 +1170 -0
- proto/messages_pb2_grpc.py +406 -0
- proto/messages_pb2_grpc.pyi +380 -0
- rappel/__init__.py +56 -0
- rappel/actions.py +81 -0
- rappel/bin/boot-rappel-singleton.exe +0 -0
- rappel/bin/rappel-bridge.exe +0 -0
- rappel/bin/start-workers.exe +0 -0
- rappel/bridge.py +228 -0
- rappel/dependencies.py +135 -0
- rappel/exceptions.py +11 -0
- rappel/formatter.py +110 -0
- rappel/ir_builder.py +3146 -0
- rappel/logger.py +39 -0
- rappel/registry.py +75 -0
- rappel/schedule.py +294 -0
- rappel/serialization.py +205 -0
- rappel/worker.py +191 -0
- rappel/workflow.py +236 -0
- rappel/workflow_runtime.py +137 -0
- rappel-0.4.1.data/scripts/boot-rappel-singleton.exe +0 -0
- rappel-0.4.1.data/scripts/rappel-bridge.exe +0 -0
- rappel-0.4.1.data/scripts/start-workers.exe +0 -0
- rappel-0.4.1.dist-info/METADATA +292 -0
- rappel-0.4.1.dist-info/RECORD +32 -0
- rappel-0.4.1.dist-info/WHEEL +4 -0
- rappel-0.4.1.dist-info/entry_points.txt +2 -0
proto/ast_pb2.pyi
ADDED
|
@@ -0,0 +1,1609 @@
|
|
|
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 SingleCallBody(google.protobuf.message.Message):
|
|
224
|
+
"""-----------------------------------------------------------------------------
|
|
225
|
+
Constrained Bodies for Control Flow
|
|
226
|
+
-----------------------------------------------------------------------------
|
|
227
|
+
Control flow structures (for, try, if) have stricter constraints than
|
|
228
|
+
general blocks. These types make the constraints explicit.
|
|
229
|
+
|
|
230
|
+
Body constrained to at most ONE action or function call.
|
|
231
|
+
Used by: TryExcept (try_body, handlers), Conditional branches, ForLoop body
|
|
232
|
+
|
|
233
|
+
Can contain EITHER:
|
|
234
|
+
1. A single call (action or function) with optional assignment target
|
|
235
|
+
2. Pure data statements (no calls) for data manipulation branches
|
|
236
|
+
|
|
237
|
+
Example (with call):
|
|
238
|
+
if score >= 75:
|
|
239
|
+
result = @evaluate_high(score=score)
|
|
240
|
+
|
|
241
|
+
Example (pure data):
|
|
242
|
+
if item in inventory:
|
|
243
|
+
valid_items = valid_items + [item]
|
|
244
|
+
"""
|
|
245
|
+
|
|
246
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
247
|
+
|
|
248
|
+
TARGETS_FIELD_NUMBER: builtins.int
|
|
249
|
+
CALL_FIELD_NUMBER: builtins.int
|
|
250
|
+
STATEMENTS_FIELD_NUMBER: builtins.int
|
|
251
|
+
SPAN_FIELD_NUMBER: builtins.int
|
|
252
|
+
@property
|
|
253
|
+
def targets(
|
|
254
|
+
self,
|
|
255
|
+
) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
|
256
|
+
"""Variables to assign result (supports tuple unpacking)"""
|
|
257
|
+
|
|
258
|
+
@property
|
|
259
|
+
def call(self) -> Global___Call:
|
|
260
|
+
"""The single call (optional - missing = pure data)"""
|
|
261
|
+
|
|
262
|
+
@property
|
|
263
|
+
def statements(
|
|
264
|
+
self,
|
|
265
|
+
) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Statement]:
|
|
266
|
+
"""Pure data statements (if no call)"""
|
|
267
|
+
|
|
268
|
+
@property
|
|
269
|
+
def span(self) -> Global___Span: ...
|
|
270
|
+
def __init__(
|
|
271
|
+
self,
|
|
272
|
+
*,
|
|
273
|
+
targets: collections.abc.Iterable[builtins.str] | None = ...,
|
|
274
|
+
call: Global___Call | None = ...,
|
|
275
|
+
statements: collections.abc.Iterable[Global___Statement] | None = ...,
|
|
276
|
+
span: Global___Span | None = ...,
|
|
277
|
+
) -> None: ...
|
|
278
|
+
def HasField(
|
|
279
|
+
self, field_name: typing.Literal["_call", b"_call", "call", b"call", "span", b"span"]
|
|
280
|
+
) -> builtins.bool: ...
|
|
281
|
+
def ClearField(
|
|
282
|
+
self,
|
|
283
|
+
field_name: typing.Literal[
|
|
284
|
+
"_call",
|
|
285
|
+
b"_call",
|
|
286
|
+
"call",
|
|
287
|
+
b"call",
|
|
288
|
+
"span",
|
|
289
|
+
b"span",
|
|
290
|
+
"statements",
|
|
291
|
+
b"statements",
|
|
292
|
+
"targets",
|
|
293
|
+
b"targets",
|
|
294
|
+
],
|
|
295
|
+
) -> None: ...
|
|
296
|
+
def WhichOneof(
|
|
297
|
+
self, oneof_group: typing.Literal["_call", b"_call"]
|
|
298
|
+
) -> typing.Literal["call"] | None: ...
|
|
299
|
+
|
|
300
|
+
Global___SingleCallBody: typing_extensions.TypeAlias = SingleCallBody
|
|
301
|
+
|
|
302
|
+
@typing.final
|
|
303
|
+
class Statement(google.protobuf.message.Message):
|
|
304
|
+
"""-----------------------------------------------------------------------------
|
|
305
|
+
Statements
|
|
306
|
+
-----------------------------------------------------------------------------
|
|
307
|
+
"""
|
|
308
|
+
|
|
309
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
310
|
+
|
|
311
|
+
ASSIGNMENT_FIELD_NUMBER: builtins.int
|
|
312
|
+
ACTION_CALL_FIELD_NUMBER: builtins.int
|
|
313
|
+
SPREAD_ACTION_FIELD_NUMBER: builtins.int
|
|
314
|
+
PARALLEL_BLOCK_FIELD_NUMBER: builtins.int
|
|
315
|
+
FOR_LOOP_FIELD_NUMBER: builtins.int
|
|
316
|
+
CONDITIONAL_FIELD_NUMBER: builtins.int
|
|
317
|
+
TRY_EXCEPT_FIELD_NUMBER: builtins.int
|
|
318
|
+
RETURN_STMT_FIELD_NUMBER: builtins.int
|
|
319
|
+
EXPR_STMT_FIELD_NUMBER: builtins.int
|
|
320
|
+
SPAN_FIELD_NUMBER: builtins.int
|
|
321
|
+
@property
|
|
322
|
+
def assignment(self) -> Global___Assignment: ...
|
|
323
|
+
@property
|
|
324
|
+
def action_call(self) -> Global___ActionCall: ...
|
|
325
|
+
@property
|
|
326
|
+
def spread_action(self) -> Global___SpreadAction: ...
|
|
327
|
+
@property
|
|
328
|
+
def parallel_block(self) -> Global___ParallelBlock: ...
|
|
329
|
+
@property
|
|
330
|
+
def for_loop(self) -> Global___ForLoop: ...
|
|
331
|
+
@property
|
|
332
|
+
def conditional(self) -> Global___Conditional: ...
|
|
333
|
+
@property
|
|
334
|
+
def try_except(self) -> Global___TryExcept: ...
|
|
335
|
+
@property
|
|
336
|
+
def return_stmt(self) -> Global___ReturnStmt: ...
|
|
337
|
+
@property
|
|
338
|
+
def expr_stmt(self) -> Global___ExprStmt: ...
|
|
339
|
+
@property
|
|
340
|
+
def span(self) -> Global___Span: ...
|
|
341
|
+
def __init__(
|
|
342
|
+
self,
|
|
343
|
+
*,
|
|
344
|
+
assignment: Global___Assignment | None = ...,
|
|
345
|
+
action_call: Global___ActionCall | None = ...,
|
|
346
|
+
spread_action: Global___SpreadAction | None = ...,
|
|
347
|
+
parallel_block: Global___ParallelBlock | None = ...,
|
|
348
|
+
for_loop: Global___ForLoop | None = ...,
|
|
349
|
+
conditional: Global___Conditional | None = ...,
|
|
350
|
+
try_except: Global___TryExcept | None = ...,
|
|
351
|
+
return_stmt: Global___ReturnStmt | None = ...,
|
|
352
|
+
expr_stmt: Global___ExprStmt | None = ...,
|
|
353
|
+
span: Global___Span | None = ...,
|
|
354
|
+
) -> None: ...
|
|
355
|
+
def HasField(
|
|
356
|
+
self,
|
|
357
|
+
field_name: typing.Literal[
|
|
358
|
+
"action_call",
|
|
359
|
+
b"action_call",
|
|
360
|
+
"assignment",
|
|
361
|
+
b"assignment",
|
|
362
|
+
"conditional",
|
|
363
|
+
b"conditional",
|
|
364
|
+
"expr_stmt",
|
|
365
|
+
b"expr_stmt",
|
|
366
|
+
"for_loop",
|
|
367
|
+
b"for_loop",
|
|
368
|
+
"kind",
|
|
369
|
+
b"kind",
|
|
370
|
+
"parallel_block",
|
|
371
|
+
b"parallel_block",
|
|
372
|
+
"return_stmt",
|
|
373
|
+
b"return_stmt",
|
|
374
|
+
"span",
|
|
375
|
+
b"span",
|
|
376
|
+
"spread_action",
|
|
377
|
+
b"spread_action",
|
|
378
|
+
"try_except",
|
|
379
|
+
b"try_except",
|
|
380
|
+
],
|
|
381
|
+
) -> builtins.bool: ...
|
|
382
|
+
def ClearField(
|
|
383
|
+
self,
|
|
384
|
+
field_name: typing.Literal[
|
|
385
|
+
"action_call",
|
|
386
|
+
b"action_call",
|
|
387
|
+
"assignment",
|
|
388
|
+
b"assignment",
|
|
389
|
+
"conditional",
|
|
390
|
+
b"conditional",
|
|
391
|
+
"expr_stmt",
|
|
392
|
+
b"expr_stmt",
|
|
393
|
+
"for_loop",
|
|
394
|
+
b"for_loop",
|
|
395
|
+
"kind",
|
|
396
|
+
b"kind",
|
|
397
|
+
"parallel_block",
|
|
398
|
+
b"parallel_block",
|
|
399
|
+
"return_stmt",
|
|
400
|
+
b"return_stmt",
|
|
401
|
+
"span",
|
|
402
|
+
b"span",
|
|
403
|
+
"spread_action",
|
|
404
|
+
b"spread_action",
|
|
405
|
+
"try_except",
|
|
406
|
+
b"try_except",
|
|
407
|
+
],
|
|
408
|
+
) -> None: ...
|
|
409
|
+
def WhichOneof(
|
|
410
|
+
self, oneof_group: typing.Literal["kind", b"kind"]
|
|
411
|
+
) -> (
|
|
412
|
+
typing.Literal[
|
|
413
|
+
"assignment",
|
|
414
|
+
"action_call",
|
|
415
|
+
"spread_action",
|
|
416
|
+
"parallel_block",
|
|
417
|
+
"for_loop",
|
|
418
|
+
"conditional",
|
|
419
|
+
"try_except",
|
|
420
|
+
"return_stmt",
|
|
421
|
+
"expr_stmt",
|
|
422
|
+
]
|
|
423
|
+
| None
|
|
424
|
+
): ...
|
|
425
|
+
|
|
426
|
+
Global___Statement: typing_extensions.TypeAlias = Statement
|
|
427
|
+
|
|
428
|
+
@typing.final
|
|
429
|
+
class Assignment(google.protobuf.message.Message):
|
|
430
|
+
"""Variable assignment: x = expr"""
|
|
431
|
+
|
|
432
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
433
|
+
|
|
434
|
+
TARGETS_FIELD_NUMBER: builtins.int
|
|
435
|
+
VALUE_FIELD_NUMBER: builtins.int
|
|
436
|
+
@property
|
|
437
|
+
def targets(
|
|
438
|
+
self,
|
|
439
|
+
) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
|
440
|
+
"""Single variable or tuple unpacking (a, b = expr)"""
|
|
441
|
+
|
|
442
|
+
@property
|
|
443
|
+
def value(self) -> Global___Expr: ...
|
|
444
|
+
def __init__(
|
|
445
|
+
self,
|
|
446
|
+
*,
|
|
447
|
+
targets: collections.abc.Iterable[builtins.str] | None = ...,
|
|
448
|
+
value: Global___Expr | None = ...,
|
|
449
|
+
) -> None: ...
|
|
450
|
+
def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ...
|
|
451
|
+
def ClearField(
|
|
452
|
+
self, field_name: typing.Literal["targets", b"targets", "value", b"value"]
|
|
453
|
+
) -> None: ...
|
|
454
|
+
|
|
455
|
+
Global___Assignment: typing_extensions.TypeAlias = Assignment
|
|
456
|
+
|
|
457
|
+
@typing.final
|
|
458
|
+
class ActionCall(google.protobuf.message.Message):
|
|
459
|
+
"""Action call: @action(kwargs) [retry_policy] [timeout]
|
|
460
|
+
Can be used as:
|
|
461
|
+
- Statement (side effect only): @notify(user=x)
|
|
462
|
+
- Expression in Assignment (with binding): result = @fetch(id=x)
|
|
463
|
+
- Expression in Assignment (with unpacking): a, b = @get_pair()
|
|
464
|
+
"""
|
|
465
|
+
|
|
466
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
467
|
+
|
|
468
|
+
ACTION_NAME_FIELD_NUMBER: builtins.int
|
|
469
|
+
KWARGS_FIELD_NUMBER: builtins.int
|
|
470
|
+
POLICIES_FIELD_NUMBER: builtins.int
|
|
471
|
+
MODULE_NAME_FIELD_NUMBER: builtins.int
|
|
472
|
+
action_name: builtins.str
|
|
473
|
+
module_name: builtins.str
|
|
474
|
+
"""Python module containing the action"""
|
|
475
|
+
@property
|
|
476
|
+
def kwargs(
|
|
477
|
+
self,
|
|
478
|
+
) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Kwarg]: ...
|
|
479
|
+
@property
|
|
480
|
+
def policies(
|
|
481
|
+
self,
|
|
482
|
+
) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
|
|
483
|
+
Global___PolicyBracket
|
|
484
|
+
]: ...
|
|
485
|
+
def __init__(
|
|
486
|
+
self,
|
|
487
|
+
*,
|
|
488
|
+
action_name: builtins.str = ...,
|
|
489
|
+
kwargs: collections.abc.Iterable[Global___Kwarg] | None = ...,
|
|
490
|
+
policies: collections.abc.Iterable[Global___PolicyBracket] | None = ...,
|
|
491
|
+
module_name: builtins.str | None = ...,
|
|
492
|
+
) -> None: ...
|
|
493
|
+
def HasField(
|
|
494
|
+
self,
|
|
495
|
+
field_name: typing.Literal["_module_name", b"_module_name", "module_name", b"module_name"],
|
|
496
|
+
) -> builtins.bool: ...
|
|
497
|
+
def ClearField(
|
|
498
|
+
self,
|
|
499
|
+
field_name: typing.Literal[
|
|
500
|
+
"_module_name",
|
|
501
|
+
b"_module_name",
|
|
502
|
+
"action_name",
|
|
503
|
+
b"action_name",
|
|
504
|
+
"kwargs",
|
|
505
|
+
b"kwargs",
|
|
506
|
+
"module_name",
|
|
507
|
+
b"module_name",
|
|
508
|
+
"policies",
|
|
509
|
+
b"policies",
|
|
510
|
+
],
|
|
511
|
+
) -> None: ...
|
|
512
|
+
def WhichOneof(
|
|
513
|
+
self, oneof_group: typing.Literal["_module_name", b"_module_name"]
|
|
514
|
+
) -> typing.Literal["module_name"] | None: ...
|
|
515
|
+
|
|
516
|
+
Global___ActionCall: typing_extensions.TypeAlias = ActionCall
|
|
517
|
+
|
|
518
|
+
@typing.final
|
|
519
|
+
class SpreadAction(google.protobuf.message.Message):
|
|
520
|
+
"""Spread action statement (side effect only, no result capture)
|
|
521
|
+
For result capture, use Assignment with SpreadExpr
|
|
522
|
+
"""
|
|
523
|
+
|
|
524
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
525
|
+
|
|
526
|
+
COLLECTION_FIELD_NUMBER: builtins.int
|
|
527
|
+
LOOP_VAR_FIELD_NUMBER: builtins.int
|
|
528
|
+
ACTION_FIELD_NUMBER: builtins.int
|
|
529
|
+
loop_var: builtins.str
|
|
530
|
+
"""Variable name for each item"""
|
|
531
|
+
@property
|
|
532
|
+
def collection(self) -> Global___Expr:
|
|
533
|
+
"""The collection to iterate"""
|
|
534
|
+
|
|
535
|
+
@property
|
|
536
|
+
def action(self) -> Global___ActionCall:
|
|
537
|
+
"""The action to call per item"""
|
|
538
|
+
|
|
539
|
+
def __init__(
|
|
540
|
+
self,
|
|
541
|
+
*,
|
|
542
|
+
collection: Global___Expr | None = ...,
|
|
543
|
+
loop_var: builtins.str = ...,
|
|
544
|
+
action: Global___ActionCall | None = ...,
|
|
545
|
+
) -> None: ...
|
|
546
|
+
def HasField(
|
|
547
|
+
self, field_name: typing.Literal["action", b"action", "collection", b"collection"]
|
|
548
|
+
) -> builtins.bool: ...
|
|
549
|
+
def ClearField(
|
|
550
|
+
self,
|
|
551
|
+
field_name: typing.Literal[
|
|
552
|
+
"action", b"action", "collection", b"collection", "loop_var", b"loop_var"
|
|
553
|
+
],
|
|
554
|
+
) -> None: ...
|
|
555
|
+
|
|
556
|
+
Global___SpreadAction: typing_extensions.TypeAlias = SpreadAction
|
|
557
|
+
|
|
558
|
+
@typing.final
|
|
559
|
+
class ParallelBlock(google.protobuf.message.Message):
|
|
560
|
+
"""Parallel block statement (side effect only, no result capture)
|
|
561
|
+
For result capture, use Assignment with ParallelExpr
|
|
562
|
+
"""
|
|
563
|
+
|
|
564
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
565
|
+
|
|
566
|
+
CALLS_FIELD_NUMBER: builtins.int
|
|
567
|
+
@property
|
|
568
|
+
def calls(
|
|
569
|
+
self,
|
|
570
|
+
) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Call]:
|
|
571
|
+
"""Actions or function calls to run in parallel"""
|
|
572
|
+
|
|
573
|
+
def __init__(
|
|
574
|
+
self,
|
|
575
|
+
*,
|
|
576
|
+
calls: collections.abc.Iterable[Global___Call] | None = ...,
|
|
577
|
+
) -> None: ...
|
|
578
|
+
def ClearField(self, field_name: typing.Literal["calls", b"calls"]) -> None: ...
|
|
579
|
+
|
|
580
|
+
Global___ParallelBlock: typing_extensions.TypeAlias = ParallelBlock
|
|
581
|
+
|
|
582
|
+
@typing.final
|
|
583
|
+
class Call(google.protobuf.message.Message):
|
|
584
|
+
"""A call that can be either action or function (for parallel blocks)"""
|
|
585
|
+
|
|
586
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
587
|
+
|
|
588
|
+
ACTION_FIELD_NUMBER: builtins.int
|
|
589
|
+
FUNCTION_FIELD_NUMBER: builtins.int
|
|
590
|
+
@property
|
|
591
|
+
def action(self) -> Global___ActionCall: ...
|
|
592
|
+
@property
|
|
593
|
+
def function(self) -> Global___FunctionCall: ...
|
|
594
|
+
def __init__(
|
|
595
|
+
self,
|
|
596
|
+
*,
|
|
597
|
+
action: Global___ActionCall | None = ...,
|
|
598
|
+
function: Global___FunctionCall | None = ...,
|
|
599
|
+
) -> None: ...
|
|
600
|
+
def HasField(
|
|
601
|
+
self,
|
|
602
|
+
field_name: typing.Literal["action", b"action", "function", b"function", "kind", b"kind"],
|
|
603
|
+
) -> builtins.bool: ...
|
|
604
|
+
def ClearField(
|
|
605
|
+
self,
|
|
606
|
+
field_name: typing.Literal["action", b"action", "function", b"function", "kind", b"kind"],
|
|
607
|
+
) -> None: ...
|
|
608
|
+
def WhichOneof(
|
|
609
|
+
self, oneof_group: typing.Literal["kind", b"kind"]
|
|
610
|
+
) -> typing.Literal["action", "function"] | None: ...
|
|
611
|
+
|
|
612
|
+
Global___Call: typing_extensions.TypeAlias = Call
|
|
613
|
+
|
|
614
|
+
@typing.final
|
|
615
|
+
class ForLoop(google.protobuf.message.Message):
|
|
616
|
+
"""For loop: for i, item in enumerate(items): body
|
|
617
|
+
Body is constrained to at most ONE action or function call per iteration.
|
|
618
|
+
Use SpreadAction for parallel iteration over collections.
|
|
619
|
+
"""
|
|
620
|
+
|
|
621
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
622
|
+
|
|
623
|
+
LOOP_VARS_FIELD_NUMBER: builtins.int
|
|
624
|
+
ITERABLE_FIELD_NUMBER: builtins.int
|
|
625
|
+
BODY_FIELD_NUMBER: builtins.int
|
|
626
|
+
@property
|
|
627
|
+
def loop_vars(
|
|
628
|
+
self,
|
|
629
|
+
) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
|
630
|
+
"""Loop variable(s) for unpacking"""
|
|
631
|
+
|
|
632
|
+
@property
|
|
633
|
+
def iterable(self) -> Global___Expr: ...
|
|
634
|
+
@property
|
|
635
|
+
def body(self) -> Global___SingleCallBody:
|
|
636
|
+
"""Single call body (one action/fn per iteration)"""
|
|
637
|
+
|
|
638
|
+
def __init__(
|
|
639
|
+
self,
|
|
640
|
+
*,
|
|
641
|
+
loop_vars: collections.abc.Iterable[builtins.str] | None = ...,
|
|
642
|
+
iterable: Global___Expr | None = ...,
|
|
643
|
+
body: Global___SingleCallBody | None = ...,
|
|
644
|
+
) -> None: ...
|
|
645
|
+
def HasField(
|
|
646
|
+
self, field_name: typing.Literal["body", b"body", "iterable", b"iterable"]
|
|
647
|
+
) -> builtins.bool: ...
|
|
648
|
+
def ClearField(
|
|
649
|
+
self,
|
|
650
|
+
field_name: typing.Literal[
|
|
651
|
+
"body", b"body", "iterable", b"iterable", "loop_vars", b"loop_vars"
|
|
652
|
+
],
|
|
653
|
+
) -> None: ...
|
|
654
|
+
|
|
655
|
+
Global___ForLoop: typing_extensions.TypeAlias = ForLoop
|
|
656
|
+
|
|
657
|
+
@typing.final
|
|
658
|
+
class Conditional(google.protobuf.message.Message):
|
|
659
|
+
"""Conditional: if/elif/else"""
|
|
660
|
+
|
|
661
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
662
|
+
|
|
663
|
+
IF_BRANCH_FIELD_NUMBER: builtins.int
|
|
664
|
+
ELIF_BRANCHES_FIELD_NUMBER: builtins.int
|
|
665
|
+
ELSE_BRANCH_FIELD_NUMBER: builtins.int
|
|
666
|
+
@property
|
|
667
|
+
def if_branch(self) -> Global___IfBranch: ...
|
|
668
|
+
@property
|
|
669
|
+
def elif_branches(
|
|
670
|
+
self,
|
|
671
|
+
) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
|
|
672
|
+
Global___ElifBranch
|
|
673
|
+
]: ...
|
|
674
|
+
@property
|
|
675
|
+
def else_branch(self) -> Global___ElseBranch: ...
|
|
676
|
+
def __init__(
|
|
677
|
+
self,
|
|
678
|
+
*,
|
|
679
|
+
if_branch: Global___IfBranch | None = ...,
|
|
680
|
+
elif_branches: collections.abc.Iterable[Global___ElifBranch] | None = ...,
|
|
681
|
+
else_branch: Global___ElseBranch | None = ...,
|
|
682
|
+
) -> None: ...
|
|
683
|
+
def HasField(
|
|
684
|
+
self,
|
|
685
|
+
field_name: typing.Literal[
|
|
686
|
+
"_else_branch",
|
|
687
|
+
b"_else_branch",
|
|
688
|
+
"else_branch",
|
|
689
|
+
b"else_branch",
|
|
690
|
+
"if_branch",
|
|
691
|
+
b"if_branch",
|
|
692
|
+
],
|
|
693
|
+
) -> builtins.bool: ...
|
|
694
|
+
def ClearField(
|
|
695
|
+
self,
|
|
696
|
+
field_name: typing.Literal[
|
|
697
|
+
"_else_branch",
|
|
698
|
+
b"_else_branch",
|
|
699
|
+
"elif_branches",
|
|
700
|
+
b"elif_branches",
|
|
701
|
+
"else_branch",
|
|
702
|
+
b"else_branch",
|
|
703
|
+
"if_branch",
|
|
704
|
+
b"if_branch",
|
|
705
|
+
],
|
|
706
|
+
) -> None: ...
|
|
707
|
+
def WhichOneof(
|
|
708
|
+
self, oneof_group: typing.Literal["_else_branch", b"_else_branch"]
|
|
709
|
+
) -> typing.Literal["else_branch"] | None: ...
|
|
710
|
+
|
|
711
|
+
Global___Conditional: typing_extensions.TypeAlias = Conditional
|
|
712
|
+
|
|
713
|
+
@typing.final
|
|
714
|
+
class IfBranch(google.protobuf.message.Message):
|
|
715
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
716
|
+
|
|
717
|
+
CONDITION_FIELD_NUMBER: builtins.int
|
|
718
|
+
BODY_FIELD_NUMBER: builtins.int
|
|
719
|
+
SPAN_FIELD_NUMBER: builtins.int
|
|
720
|
+
@property
|
|
721
|
+
def condition(self) -> Global___Expr: ...
|
|
722
|
+
@property
|
|
723
|
+
def body(self) -> Global___SingleCallBody:
|
|
724
|
+
"""Single call body"""
|
|
725
|
+
|
|
726
|
+
@property
|
|
727
|
+
def span(self) -> Global___Span: ...
|
|
728
|
+
def __init__(
|
|
729
|
+
self,
|
|
730
|
+
*,
|
|
731
|
+
condition: Global___Expr | None = ...,
|
|
732
|
+
body: Global___SingleCallBody | None = ...,
|
|
733
|
+
span: Global___Span | None = ...,
|
|
734
|
+
) -> None: ...
|
|
735
|
+
def HasField(
|
|
736
|
+
self,
|
|
737
|
+
field_name: typing.Literal["body", b"body", "condition", b"condition", "span", b"span"],
|
|
738
|
+
) -> builtins.bool: ...
|
|
739
|
+
def ClearField(
|
|
740
|
+
self,
|
|
741
|
+
field_name: typing.Literal["body", b"body", "condition", b"condition", "span", b"span"],
|
|
742
|
+
) -> None: ...
|
|
743
|
+
|
|
744
|
+
Global___IfBranch: typing_extensions.TypeAlias = IfBranch
|
|
745
|
+
|
|
746
|
+
@typing.final
|
|
747
|
+
class ElifBranch(google.protobuf.message.Message):
|
|
748
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
749
|
+
|
|
750
|
+
CONDITION_FIELD_NUMBER: builtins.int
|
|
751
|
+
BODY_FIELD_NUMBER: builtins.int
|
|
752
|
+
SPAN_FIELD_NUMBER: builtins.int
|
|
753
|
+
@property
|
|
754
|
+
def condition(self) -> Global___Expr: ...
|
|
755
|
+
@property
|
|
756
|
+
def body(self) -> Global___SingleCallBody:
|
|
757
|
+
"""Single call body"""
|
|
758
|
+
|
|
759
|
+
@property
|
|
760
|
+
def span(self) -> Global___Span: ...
|
|
761
|
+
def __init__(
|
|
762
|
+
self,
|
|
763
|
+
*,
|
|
764
|
+
condition: Global___Expr | None = ...,
|
|
765
|
+
body: Global___SingleCallBody | None = ...,
|
|
766
|
+
span: Global___Span | None = ...,
|
|
767
|
+
) -> None: ...
|
|
768
|
+
def HasField(
|
|
769
|
+
self,
|
|
770
|
+
field_name: typing.Literal["body", b"body", "condition", b"condition", "span", b"span"],
|
|
771
|
+
) -> builtins.bool: ...
|
|
772
|
+
def ClearField(
|
|
773
|
+
self,
|
|
774
|
+
field_name: typing.Literal["body", b"body", "condition", b"condition", "span", b"span"],
|
|
775
|
+
) -> None: ...
|
|
776
|
+
|
|
777
|
+
Global___ElifBranch: typing_extensions.TypeAlias = ElifBranch
|
|
778
|
+
|
|
779
|
+
@typing.final
|
|
780
|
+
class ElseBranch(google.protobuf.message.Message):
|
|
781
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
782
|
+
|
|
783
|
+
BODY_FIELD_NUMBER: builtins.int
|
|
784
|
+
SPAN_FIELD_NUMBER: builtins.int
|
|
785
|
+
@property
|
|
786
|
+
def body(self) -> Global___SingleCallBody:
|
|
787
|
+
"""Single call body"""
|
|
788
|
+
|
|
789
|
+
@property
|
|
790
|
+
def span(self) -> Global___Span: ...
|
|
791
|
+
def __init__(
|
|
792
|
+
self,
|
|
793
|
+
*,
|
|
794
|
+
body: Global___SingleCallBody | None = ...,
|
|
795
|
+
span: Global___Span | None = ...,
|
|
796
|
+
) -> None: ...
|
|
797
|
+
def HasField(
|
|
798
|
+
self, field_name: typing.Literal["body", b"body", "span", b"span"]
|
|
799
|
+
) -> builtins.bool: ...
|
|
800
|
+
def ClearField(self, field_name: typing.Literal["body", b"body", "span", b"span"]) -> None: ...
|
|
801
|
+
|
|
802
|
+
Global___ElseBranch: typing_extensions.TypeAlias = ElseBranch
|
|
803
|
+
|
|
804
|
+
@typing.final
|
|
805
|
+
class TryExcept(google.protobuf.message.Message):
|
|
806
|
+
"""Try/except block
|
|
807
|
+
Both try body and handlers are constrained to single calls.
|
|
808
|
+
"""
|
|
809
|
+
|
|
810
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
811
|
+
|
|
812
|
+
TRY_BODY_FIELD_NUMBER: builtins.int
|
|
813
|
+
HANDLERS_FIELD_NUMBER: builtins.int
|
|
814
|
+
@property
|
|
815
|
+
def try_body(self) -> Global___SingleCallBody:
|
|
816
|
+
"""Single call body"""
|
|
817
|
+
|
|
818
|
+
@property
|
|
819
|
+
def handlers(
|
|
820
|
+
self,
|
|
821
|
+
) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
|
|
822
|
+
Global___ExceptHandler
|
|
823
|
+
]: ...
|
|
824
|
+
def __init__(
|
|
825
|
+
self,
|
|
826
|
+
*,
|
|
827
|
+
try_body: Global___SingleCallBody | None = ...,
|
|
828
|
+
handlers: collections.abc.Iterable[Global___ExceptHandler] | None = ...,
|
|
829
|
+
) -> None: ...
|
|
830
|
+
def HasField(self, field_name: typing.Literal["try_body", b"try_body"]) -> builtins.bool: ...
|
|
831
|
+
def ClearField(
|
|
832
|
+
self, field_name: typing.Literal["handlers", b"handlers", "try_body", b"try_body"]
|
|
833
|
+
) -> None: ...
|
|
834
|
+
|
|
835
|
+
Global___TryExcept: typing_extensions.TypeAlias = TryExcept
|
|
836
|
+
|
|
837
|
+
@typing.final
|
|
838
|
+
class ExceptHandler(google.protobuf.message.Message):
|
|
839
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
840
|
+
|
|
841
|
+
EXCEPTION_TYPES_FIELD_NUMBER: builtins.int
|
|
842
|
+
BODY_FIELD_NUMBER: builtins.int
|
|
843
|
+
SPAN_FIELD_NUMBER: builtins.int
|
|
844
|
+
@property
|
|
845
|
+
def exception_types(
|
|
846
|
+
self,
|
|
847
|
+
) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
|
848
|
+
"""Empty = catch all"""
|
|
849
|
+
|
|
850
|
+
@property
|
|
851
|
+
def body(self) -> Global___SingleCallBody:
|
|
852
|
+
"""Single call body"""
|
|
853
|
+
|
|
854
|
+
@property
|
|
855
|
+
def span(self) -> Global___Span: ...
|
|
856
|
+
def __init__(
|
|
857
|
+
self,
|
|
858
|
+
*,
|
|
859
|
+
exception_types: collections.abc.Iterable[builtins.str] | None = ...,
|
|
860
|
+
body: Global___SingleCallBody | None = ...,
|
|
861
|
+
span: Global___Span | None = ...,
|
|
862
|
+
) -> None: ...
|
|
863
|
+
def HasField(
|
|
864
|
+
self, field_name: typing.Literal["body", b"body", "span", b"span"]
|
|
865
|
+
) -> builtins.bool: ...
|
|
866
|
+
def ClearField(
|
|
867
|
+
self,
|
|
868
|
+
field_name: typing.Literal[
|
|
869
|
+
"body", b"body", "exception_types", b"exception_types", "span", b"span"
|
|
870
|
+
],
|
|
871
|
+
) -> None: ...
|
|
872
|
+
|
|
873
|
+
Global___ExceptHandler: typing_extensions.TypeAlias = ExceptHandler
|
|
874
|
+
|
|
875
|
+
@typing.final
|
|
876
|
+
class ReturnStmt(google.protobuf.message.Message):
|
|
877
|
+
"""Return statement"""
|
|
878
|
+
|
|
879
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
880
|
+
|
|
881
|
+
VALUE_FIELD_NUMBER: builtins.int
|
|
882
|
+
@property
|
|
883
|
+
def value(self) -> Global___Expr: ...
|
|
884
|
+
def __init__(
|
|
885
|
+
self,
|
|
886
|
+
*,
|
|
887
|
+
value: Global___Expr | None = ...,
|
|
888
|
+
) -> None: ...
|
|
889
|
+
def HasField(
|
|
890
|
+
self, field_name: typing.Literal["_value", b"_value", "value", b"value"]
|
|
891
|
+
) -> builtins.bool: ...
|
|
892
|
+
def ClearField(
|
|
893
|
+
self, field_name: typing.Literal["_value", b"_value", "value", b"value"]
|
|
894
|
+
) -> None: ...
|
|
895
|
+
def WhichOneof(
|
|
896
|
+
self, oneof_group: typing.Literal["_value", b"_value"]
|
|
897
|
+
) -> typing.Literal["value"] | None: ...
|
|
898
|
+
|
|
899
|
+
Global___ReturnStmt: typing_extensions.TypeAlias = ReturnStmt
|
|
900
|
+
|
|
901
|
+
@typing.final
|
|
902
|
+
class ExprStmt(google.protobuf.message.Message):
|
|
903
|
+
"""Expression as statement"""
|
|
904
|
+
|
|
905
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
906
|
+
|
|
907
|
+
EXPR_FIELD_NUMBER: builtins.int
|
|
908
|
+
@property
|
|
909
|
+
def expr(self) -> Global___Expr: ...
|
|
910
|
+
def __init__(
|
|
911
|
+
self,
|
|
912
|
+
*,
|
|
913
|
+
expr: Global___Expr | None = ...,
|
|
914
|
+
) -> None: ...
|
|
915
|
+
def HasField(self, field_name: typing.Literal["expr", b"expr"]) -> builtins.bool: ...
|
|
916
|
+
def ClearField(self, field_name: typing.Literal["expr", b"expr"]) -> None: ...
|
|
917
|
+
|
|
918
|
+
Global___ExprStmt: typing_extensions.TypeAlias = ExprStmt
|
|
919
|
+
|
|
920
|
+
@typing.final
|
|
921
|
+
class Expr(google.protobuf.message.Message):
|
|
922
|
+
"""-----------------------------------------------------------------------------
|
|
923
|
+
Expressions
|
|
924
|
+
-----------------------------------------------------------------------------
|
|
925
|
+
"""
|
|
926
|
+
|
|
927
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
928
|
+
|
|
929
|
+
LITERAL_FIELD_NUMBER: builtins.int
|
|
930
|
+
VARIABLE_FIELD_NUMBER: builtins.int
|
|
931
|
+
BINARY_OP_FIELD_NUMBER: builtins.int
|
|
932
|
+
UNARY_OP_FIELD_NUMBER: builtins.int
|
|
933
|
+
LIST_FIELD_NUMBER: builtins.int
|
|
934
|
+
DICT_FIELD_NUMBER: builtins.int
|
|
935
|
+
INDEX_FIELD_NUMBER: builtins.int
|
|
936
|
+
DOT_FIELD_NUMBER: builtins.int
|
|
937
|
+
FUNCTION_CALL_FIELD_NUMBER: builtins.int
|
|
938
|
+
ACTION_CALL_FIELD_NUMBER: builtins.int
|
|
939
|
+
PARALLEL_EXPR_FIELD_NUMBER: builtins.int
|
|
940
|
+
SPREAD_EXPR_FIELD_NUMBER: builtins.int
|
|
941
|
+
SPAN_FIELD_NUMBER: builtins.int
|
|
942
|
+
@property
|
|
943
|
+
def literal(self) -> Global___Literal: ...
|
|
944
|
+
@property
|
|
945
|
+
def variable(self) -> Global___Variable: ...
|
|
946
|
+
@property
|
|
947
|
+
def binary_op(self) -> Global___BinaryOp: ...
|
|
948
|
+
@property
|
|
949
|
+
def unary_op(self) -> Global___UnaryOp: ...
|
|
950
|
+
@property
|
|
951
|
+
def list(self) -> Global___ListExpr: ...
|
|
952
|
+
@property
|
|
953
|
+
def dict(self) -> Global___DictExpr: ...
|
|
954
|
+
@property
|
|
955
|
+
def index(self) -> Global___IndexAccess: ...
|
|
956
|
+
@property
|
|
957
|
+
def dot(self) -> Global___DotAccess: ...
|
|
958
|
+
@property
|
|
959
|
+
def function_call(self) -> Global___FunctionCall: ...
|
|
960
|
+
@property
|
|
961
|
+
def action_call(self) -> Global___ActionCall: ...
|
|
962
|
+
@property
|
|
963
|
+
def parallel_expr(self) -> Global___ParallelExpr:
|
|
964
|
+
"""Parallel block as expression"""
|
|
965
|
+
|
|
966
|
+
@property
|
|
967
|
+
def spread_expr(self) -> Global___SpreadExpr:
|
|
968
|
+
"""Spread action as expression"""
|
|
969
|
+
|
|
970
|
+
@property
|
|
971
|
+
def span(self) -> Global___Span: ...
|
|
972
|
+
def __init__(
|
|
973
|
+
self,
|
|
974
|
+
*,
|
|
975
|
+
literal: Global___Literal | None = ...,
|
|
976
|
+
variable: Global___Variable | None = ...,
|
|
977
|
+
binary_op: Global___BinaryOp | None = ...,
|
|
978
|
+
unary_op: Global___UnaryOp | None = ...,
|
|
979
|
+
list: Global___ListExpr | None = ...,
|
|
980
|
+
dict: Global___DictExpr | None = ...,
|
|
981
|
+
index: Global___IndexAccess | None = ...,
|
|
982
|
+
dot: Global___DotAccess | None = ...,
|
|
983
|
+
function_call: Global___FunctionCall | None = ...,
|
|
984
|
+
action_call: Global___ActionCall | None = ...,
|
|
985
|
+
parallel_expr: Global___ParallelExpr | None = ...,
|
|
986
|
+
spread_expr: Global___SpreadExpr | None = ...,
|
|
987
|
+
span: Global___Span | None = ...,
|
|
988
|
+
) -> None: ...
|
|
989
|
+
def HasField(
|
|
990
|
+
self,
|
|
991
|
+
field_name: typing.Literal[
|
|
992
|
+
"action_call",
|
|
993
|
+
b"action_call",
|
|
994
|
+
"binary_op",
|
|
995
|
+
b"binary_op",
|
|
996
|
+
"dict",
|
|
997
|
+
b"dict",
|
|
998
|
+
"dot",
|
|
999
|
+
b"dot",
|
|
1000
|
+
"function_call",
|
|
1001
|
+
b"function_call",
|
|
1002
|
+
"index",
|
|
1003
|
+
b"index",
|
|
1004
|
+
"kind",
|
|
1005
|
+
b"kind",
|
|
1006
|
+
"list",
|
|
1007
|
+
b"list",
|
|
1008
|
+
"literal",
|
|
1009
|
+
b"literal",
|
|
1010
|
+
"parallel_expr",
|
|
1011
|
+
b"parallel_expr",
|
|
1012
|
+
"span",
|
|
1013
|
+
b"span",
|
|
1014
|
+
"spread_expr",
|
|
1015
|
+
b"spread_expr",
|
|
1016
|
+
"unary_op",
|
|
1017
|
+
b"unary_op",
|
|
1018
|
+
"variable",
|
|
1019
|
+
b"variable",
|
|
1020
|
+
],
|
|
1021
|
+
) -> builtins.bool: ...
|
|
1022
|
+
def ClearField(
|
|
1023
|
+
self,
|
|
1024
|
+
field_name: typing.Literal[
|
|
1025
|
+
"action_call",
|
|
1026
|
+
b"action_call",
|
|
1027
|
+
"binary_op",
|
|
1028
|
+
b"binary_op",
|
|
1029
|
+
"dict",
|
|
1030
|
+
b"dict",
|
|
1031
|
+
"dot",
|
|
1032
|
+
b"dot",
|
|
1033
|
+
"function_call",
|
|
1034
|
+
b"function_call",
|
|
1035
|
+
"index",
|
|
1036
|
+
b"index",
|
|
1037
|
+
"kind",
|
|
1038
|
+
b"kind",
|
|
1039
|
+
"list",
|
|
1040
|
+
b"list",
|
|
1041
|
+
"literal",
|
|
1042
|
+
b"literal",
|
|
1043
|
+
"parallel_expr",
|
|
1044
|
+
b"parallel_expr",
|
|
1045
|
+
"span",
|
|
1046
|
+
b"span",
|
|
1047
|
+
"spread_expr",
|
|
1048
|
+
b"spread_expr",
|
|
1049
|
+
"unary_op",
|
|
1050
|
+
b"unary_op",
|
|
1051
|
+
"variable",
|
|
1052
|
+
b"variable",
|
|
1053
|
+
],
|
|
1054
|
+
) -> None: ...
|
|
1055
|
+
def WhichOneof(
|
|
1056
|
+
self, oneof_group: typing.Literal["kind", b"kind"]
|
|
1057
|
+
) -> (
|
|
1058
|
+
typing.Literal[
|
|
1059
|
+
"literal",
|
|
1060
|
+
"variable",
|
|
1061
|
+
"binary_op",
|
|
1062
|
+
"unary_op",
|
|
1063
|
+
"list",
|
|
1064
|
+
"dict",
|
|
1065
|
+
"index",
|
|
1066
|
+
"dot",
|
|
1067
|
+
"function_call",
|
|
1068
|
+
"action_call",
|
|
1069
|
+
"parallel_expr",
|
|
1070
|
+
"spread_expr",
|
|
1071
|
+
]
|
|
1072
|
+
| None
|
|
1073
|
+
): ...
|
|
1074
|
+
|
|
1075
|
+
Global___Expr: typing_extensions.TypeAlias = Expr
|
|
1076
|
+
|
|
1077
|
+
@typing.final
|
|
1078
|
+
class Literal(google.protobuf.message.Message):
|
|
1079
|
+
"""Literals: 42, 3.14, "hello", True, False"""
|
|
1080
|
+
|
|
1081
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1082
|
+
|
|
1083
|
+
INT_VALUE_FIELD_NUMBER: builtins.int
|
|
1084
|
+
FLOAT_VALUE_FIELD_NUMBER: builtins.int
|
|
1085
|
+
STRING_VALUE_FIELD_NUMBER: builtins.int
|
|
1086
|
+
BOOL_VALUE_FIELD_NUMBER: builtins.int
|
|
1087
|
+
IS_NONE_FIELD_NUMBER: builtins.int
|
|
1088
|
+
int_value: builtins.int
|
|
1089
|
+
float_value: builtins.float
|
|
1090
|
+
string_value: builtins.str
|
|
1091
|
+
bool_value: builtins.bool
|
|
1092
|
+
is_none: builtins.bool
|
|
1093
|
+
"""true if None"""
|
|
1094
|
+
def __init__(
|
|
1095
|
+
self,
|
|
1096
|
+
*,
|
|
1097
|
+
int_value: builtins.int = ...,
|
|
1098
|
+
float_value: builtins.float = ...,
|
|
1099
|
+
string_value: builtins.str = ...,
|
|
1100
|
+
bool_value: builtins.bool = ...,
|
|
1101
|
+
is_none: builtins.bool = ...,
|
|
1102
|
+
) -> None: ...
|
|
1103
|
+
def HasField(
|
|
1104
|
+
self,
|
|
1105
|
+
field_name: typing.Literal[
|
|
1106
|
+
"bool_value",
|
|
1107
|
+
b"bool_value",
|
|
1108
|
+
"float_value",
|
|
1109
|
+
b"float_value",
|
|
1110
|
+
"int_value",
|
|
1111
|
+
b"int_value",
|
|
1112
|
+
"is_none",
|
|
1113
|
+
b"is_none",
|
|
1114
|
+
"string_value",
|
|
1115
|
+
b"string_value",
|
|
1116
|
+
"value",
|
|
1117
|
+
b"value",
|
|
1118
|
+
],
|
|
1119
|
+
) -> builtins.bool: ...
|
|
1120
|
+
def ClearField(
|
|
1121
|
+
self,
|
|
1122
|
+
field_name: typing.Literal[
|
|
1123
|
+
"bool_value",
|
|
1124
|
+
b"bool_value",
|
|
1125
|
+
"float_value",
|
|
1126
|
+
b"float_value",
|
|
1127
|
+
"int_value",
|
|
1128
|
+
b"int_value",
|
|
1129
|
+
"is_none",
|
|
1130
|
+
b"is_none",
|
|
1131
|
+
"string_value",
|
|
1132
|
+
b"string_value",
|
|
1133
|
+
"value",
|
|
1134
|
+
b"value",
|
|
1135
|
+
],
|
|
1136
|
+
) -> None: ...
|
|
1137
|
+
def WhichOneof(
|
|
1138
|
+
self, oneof_group: typing.Literal["value", b"value"]
|
|
1139
|
+
) -> (
|
|
1140
|
+
typing.Literal["int_value", "float_value", "string_value", "bool_value", "is_none"] | None
|
|
1141
|
+
): ...
|
|
1142
|
+
|
|
1143
|
+
Global___Literal: typing_extensions.TypeAlias = Literal
|
|
1144
|
+
|
|
1145
|
+
@typing.final
|
|
1146
|
+
class Variable(google.protobuf.message.Message):
|
|
1147
|
+
"""Variable reference: foo"""
|
|
1148
|
+
|
|
1149
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1150
|
+
|
|
1151
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
1152
|
+
name: builtins.str
|
|
1153
|
+
def __init__(
|
|
1154
|
+
self,
|
|
1155
|
+
*,
|
|
1156
|
+
name: builtins.str = ...,
|
|
1157
|
+
) -> None: ...
|
|
1158
|
+
def ClearField(self, field_name: typing.Literal["name", b"name"]) -> None: ...
|
|
1159
|
+
|
|
1160
|
+
Global___Variable: typing_extensions.TypeAlias = Variable
|
|
1161
|
+
|
|
1162
|
+
@typing.final
|
|
1163
|
+
class BinaryOp(google.protobuf.message.Message):
|
|
1164
|
+
"""Binary operation: a + b, x and y, etc."""
|
|
1165
|
+
|
|
1166
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1167
|
+
|
|
1168
|
+
LEFT_FIELD_NUMBER: builtins.int
|
|
1169
|
+
OP_FIELD_NUMBER: builtins.int
|
|
1170
|
+
RIGHT_FIELD_NUMBER: builtins.int
|
|
1171
|
+
op: Global___BinaryOperator.ValueType
|
|
1172
|
+
@property
|
|
1173
|
+
def left(self) -> Global___Expr: ...
|
|
1174
|
+
@property
|
|
1175
|
+
def right(self) -> Global___Expr: ...
|
|
1176
|
+
def __init__(
|
|
1177
|
+
self,
|
|
1178
|
+
*,
|
|
1179
|
+
left: Global___Expr | None = ...,
|
|
1180
|
+
op: Global___BinaryOperator.ValueType = ...,
|
|
1181
|
+
right: Global___Expr | None = ...,
|
|
1182
|
+
) -> None: ...
|
|
1183
|
+
def HasField(
|
|
1184
|
+
self, field_name: typing.Literal["left", b"left", "right", b"right"]
|
|
1185
|
+
) -> builtins.bool: ...
|
|
1186
|
+
def ClearField(
|
|
1187
|
+
self, field_name: typing.Literal["left", b"left", "op", b"op", "right", b"right"]
|
|
1188
|
+
) -> None: ...
|
|
1189
|
+
|
|
1190
|
+
Global___BinaryOp: typing_extensions.TypeAlias = BinaryOp
|
|
1191
|
+
|
|
1192
|
+
@typing.final
|
|
1193
|
+
class UnaryOp(google.protobuf.message.Message):
|
|
1194
|
+
"""Unary operation: -x, not x"""
|
|
1195
|
+
|
|
1196
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1197
|
+
|
|
1198
|
+
OP_FIELD_NUMBER: builtins.int
|
|
1199
|
+
OPERAND_FIELD_NUMBER: builtins.int
|
|
1200
|
+
op: Global___UnaryOperator.ValueType
|
|
1201
|
+
@property
|
|
1202
|
+
def operand(self) -> Global___Expr: ...
|
|
1203
|
+
def __init__(
|
|
1204
|
+
self,
|
|
1205
|
+
*,
|
|
1206
|
+
op: Global___UnaryOperator.ValueType = ...,
|
|
1207
|
+
operand: Global___Expr | None = ...,
|
|
1208
|
+
) -> None: ...
|
|
1209
|
+
def HasField(self, field_name: typing.Literal["operand", b"operand"]) -> builtins.bool: ...
|
|
1210
|
+
def ClearField(
|
|
1211
|
+
self, field_name: typing.Literal["op", b"op", "operand", b"operand"]
|
|
1212
|
+
) -> None: ...
|
|
1213
|
+
|
|
1214
|
+
Global___UnaryOp: typing_extensions.TypeAlias = UnaryOp
|
|
1215
|
+
|
|
1216
|
+
@typing.final
|
|
1217
|
+
class ListExpr(google.protobuf.message.Message):
|
|
1218
|
+
"""List literal: [1, 2, 3]"""
|
|
1219
|
+
|
|
1220
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1221
|
+
|
|
1222
|
+
ELEMENTS_FIELD_NUMBER: builtins.int
|
|
1223
|
+
@property
|
|
1224
|
+
def elements(
|
|
1225
|
+
self,
|
|
1226
|
+
) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Expr]: ...
|
|
1227
|
+
def __init__(
|
|
1228
|
+
self,
|
|
1229
|
+
*,
|
|
1230
|
+
elements: collections.abc.Iterable[Global___Expr] | None = ...,
|
|
1231
|
+
) -> None: ...
|
|
1232
|
+
def ClearField(self, field_name: typing.Literal["elements", b"elements"]) -> None: ...
|
|
1233
|
+
|
|
1234
|
+
Global___ListExpr: typing_extensions.TypeAlias = ListExpr
|
|
1235
|
+
|
|
1236
|
+
@typing.final
|
|
1237
|
+
class DictExpr(google.protobuf.message.Message):
|
|
1238
|
+
"""Dict literal: {"a": 1, "b": 2}"""
|
|
1239
|
+
|
|
1240
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1241
|
+
|
|
1242
|
+
ENTRIES_FIELD_NUMBER: builtins.int
|
|
1243
|
+
@property
|
|
1244
|
+
def entries(
|
|
1245
|
+
self,
|
|
1246
|
+
) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
|
|
1247
|
+
Global___DictEntry
|
|
1248
|
+
]: ...
|
|
1249
|
+
def __init__(
|
|
1250
|
+
self,
|
|
1251
|
+
*,
|
|
1252
|
+
entries: collections.abc.Iterable[Global___DictEntry] | None = ...,
|
|
1253
|
+
) -> None: ...
|
|
1254
|
+
def ClearField(self, field_name: typing.Literal["entries", b"entries"]) -> None: ...
|
|
1255
|
+
|
|
1256
|
+
Global___DictExpr: typing_extensions.TypeAlias = DictExpr
|
|
1257
|
+
|
|
1258
|
+
@typing.final
|
|
1259
|
+
class DictEntry(google.protobuf.message.Message):
|
|
1260
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1261
|
+
|
|
1262
|
+
KEY_FIELD_NUMBER: builtins.int
|
|
1263
|
+
VALUE_FIELD_NUMBER: builtins.int
|
|
1264
|
+
@property
|
|
1265
|
+
def key(self) -> Global___Expr: ...
|
|
1266
|
+
@property
|
|
1267
|
+
def value(self) -> Global___Expr: ...
|
|
1268
|
+
def __init__(
|
|
1269
|
+
self,
|
|
1270
|
+
*,
|
|
1271
|
+
key: Global___Expr | None = ...,
|
|
1272
|
+
value: Global___Expr | None = ...,
|
|
1273
|
+
) -> None: ...
|
|
1274
|
+
def HasField(
|
|
1275
|
+
self, field_name: typing.Literal["key", b"key", "value", b"value"]
|
|
1276
|
+
) -> builtins.bool: ...
|
|
1277
|
+
def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
|
|
1278
|
+
|
|
1279
|
+
Global___DictEntry: typing_extensions.TypeAlias = DictEntry
|
|
1280
|
+
|
|
1281
|
+
@typing.final
|
|
1282
|
+
class IndexAccess(google.protobuf.message.Message):
|
|
1283
|
+
"""Index access: items[0]"""
|
|
1284
|
+
|
|
1285
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1286
|
+
|
|
1287
|
+
OBJECT_FIELD_NUMBER: builtins.int
|
|
1288
|
+
INDEX_FIELD_NUMBER: builtins.int
|
|
1289
|
+
@property
|
|
1290
|
+
def object(self) -> Global___Expr: ...
|
|
1291
|
+
@property
|
|
1292
|
+
def index(self) -> Global___Expr: ...
|
|
1293
|
+
def __init__(
|
|
1294
|
+
self,
|
|
1295
|
+
*,
|
|
1296
|
+
object: Global___Expr | None = ...,
|
|
1297
|
+
index: Global___Expr | None = ...,
|
|
1298
|
+
) -> None: ...
|
|
1299
|
+
def HasField(
|
|
1300
|
+
self, field_name: typing.Literal["index", b"index", "object", b"object"]
|
|
1301
|
+
) -> builtins.bool: ...
|
|
1302
|
+
def ClearField(
|
|
1303
|
+
self, field_name: typing.Literal["index", b"index", "object", b"object"]
|
|
1304
|
+
) -> None: ...
|
|
1305
|
+
|
|
1306
|
+
Global___IndexAccess: typing_extensions.TypeAlias = IndexAccess
|
|
1307
|
+
|
|
1308
|
+
@typing.final
|
|
1309
|
+
class DotAccess(google.protobuf.message.Message):
|
|
1310
|
+
"""Dot access: obj.attr"""
|
|
1311
|
+
|
|
1312
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1313
|
+
|
|
1314
|
+
OBJECT_FIELD_NUMBER: builtins.int
|
|
1315
|
+
ATTRIBUTE_FIELD_NUMBER: builtins.int
|
|
1316
|
+
attribute: builtins.str
|
|
1317
|
+
@property
|
|
1318
|
+
def object(self) -> Global___Expr: ...
|
|
1319
|
+
def __init__(
|
|
1320
|
+
self,
|
|
1321
|
+
*,
|
|
1322
|
+
object: Global___Expr | None = ...,
|
|
1323
|
+
attribute: builtins.str = ...,
|
|
1324
|
+
) -> None: ...
|
|
1325
|
+
def HasField(self, field_name: typing.Literal["object", b"object"]) -> builtins.bool: ...
|
|
1326
|
+
def ClearField(
|
|
1327
|
+
self, field_name: typing.Literal["attribute", b"attribute", "object", b"object"]
|
|
1328
|
+
) -> None: ...
|
|
1329
|
+
|
|
1330
|
+
Global___DotAccess: typing_extensions.TypeAlias = DotAccess
|
|
1331
|
+
|
|
1332
|
+
@typing.final
|
|
1333
|
+
class FunctionCall(google.protobuf.message.Message):
|
|
1334
|
+
"""Function call: range(10), len(items)
|
|
1335
|
+
Built-in functions can use positional args, user functions use kwargs
|
|
1336
|
+
"""
|
|
1337
|
+
|
|
1338
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1339
|
+
|
|
1340
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
1341
|
+
ARGS_FIELD_NUMBER: builtins.int
|
|
1342
|
+
KWARGS_FIELD_NUMBER: builtins.int
|
|
1343
|
+
name: builtins.str
|
|
1344
|
+
@property
|
|
1345
|
+
def args(
|
|
1346
|
+
self,
|
|
1347
|
+
) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Expr]:
|
|
1348
|
+
"""Positional arguments (for built-ins)"""
|
|
1349
|
+
|
|
1350
|
+
@property
|
|
1351
|
+
def kwargs(
|
|
1352
|
+
self,
|
|
1353
|
+
) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Kwarg]:
|
|
1354
|
+
"""Keyword arguments"""
|
|
1355
|
+
|
|
1356
|
+
def __init__(
|
|
1357
|
+
self,
|
|
1358
|
+
*,
|
|
1359
|
+
name: builtins.str = ...,
|
|
1360
|
+
args: collections.abc.Iterable[Global___Expr] | None = ...,
|
|
1361
|
+
kwargs: collections.abc.Iterable[Global___Kwarg] | None = ...,
|
|
1362
|
+
) -> None: ...
|
|
1363
|
+
def ClearField(
|
|
1364
|
+
self, field_name: typing.Literal["args", b"args", "kwargs", b"kwargs", "name", b"name"]
|
|
1365
|
+
) -> None: ...
|
|
1366
|
+
|
|
1367
|
+
Global___FunctionCall: typing_extensions.TypeAlias = FunctionCall
|
|
1368
|
+
|
|
1369
|
+
@typing.final
|
|
1370
|
+
class Kwarg(google.protobuf.message.Message):
|
|
1371
|
+
"""Keyword argument: name=value"""
|
|
1372
|
+
|
|
1373
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1374
|
+
|
|
1375
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
1376
|
+
VALUE_FIELD_NUMBER: builtins.int
|
|
1377
|
+
name: builtins.str
|
|
1378
|
+
@property
|
|
1379
|
+
def value(self) -> Global___Expr: ...
|
|
1380
|
+
def __init__(
|
|
1381
|
+
self,
|
|
1382
|
+
*,
|
|
1383
|
+
name: builtins.str = ...,
|
|
1384
|
+
value: Global___Expr | None = ...,
|
|
1385
|
+
) -> None: ...
|
|
1386
|
+
def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ...
|
|
1387
|
+
def ClearField(
|
|
1388
|
+
self, field_name: typing.Literal["name", b"name", "value", b"value"]
|
|
1389
|
+
) -> None: ...
|
|
1390
|
+
|
|
1391
|
+
Global___Kwarg: typing_extensions.TypeAlias = Kwarg
|
|
1392
|
+
|
|
1393
|
+
@typing.final
|
|
1394
|
+
class ParallelExpr(google.protobuf.message.Message):
|
|
1395
|
+
"""Parallel expression: concurrent execution of multiple calls, returns list
|
|
1396
|
+
Used in assignments: a, b = parallel: @x() @y()
|
|
1397
|
+
"""
|
|
1398
|
+
|
|
1399
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1400
|
+
|
|
1401
|
+
CALLS_FIELD_NUMBER: builtins.int
|
|
1402
|
+
@property
|
|
1403
|
+
def calls(
|
|
1404
|
+
self,
|
|
1405
|
+
) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Call]:
|
|
1406
|
+
"""Actions or function calls to run in parallel"""
|
|
1407
|
+
|
|
1408
|
+
def __init__(
|
|
1409
|
+
self,
|
|
1410
|
+
*,
|
|
1411
|
+
calls: collections.abc.Iterable[Global___Call] | None = ...,
|
|
1412
|
+
) -> None: ...
|
|
1413
|
+
def ClearField(self, field_name: typing.Literal["calls", b"calls"]) -> None: ...
|
|
1414
|
+
|
|
1415
|
+
Global___ParallelExpr: typing_extensions.TypeAlias = ParallelExpr
|
|
1416
|
+
|
|
1417
|
+
@typing.final
|
|
1418
|
+
class SpreadExpr(google.protobuf.message.Message):
|
|
1419
|
+
"""Spread expression: parallel execution over a collection, returns list
|
|
1420
|
+
Used in assignments: results = spread items:item -> @action(item=item)
|
|
1421
|
+
"""
|
|
1422
|
+
|
|
1423
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1424
|
+
|
|
1425
|
+
COLLECTION_FIELD_NUMBER: builtins.int
|
|
1426
|
+
LOOP_VAR_FIELD_NUMBER: builtins.int
|
|
1427
|
+
ACTION_FIELD_NUMBER: builtins.int
|
|
1428
|
+
loop_var: builtins.str
|
|
1429
|
+
"""Variable name for each item"""
|
|
1430
|
+
@property
|
|
1431
|
+
def collection(self) -> Global___Expr:
|
|
1432
|
+
"""The collection to iterate"""
|
|
1433
|
+
|
|
1434
|
+
@property
|
|
1435
|
+
def action(self) -> Global___ActionCall:
|
|
1436
|
+
"""The action to call per item"""
|
|
1437
|
+
|
|
1438
|
+
def __init__(
|
|
1439
|
+
self,
|
|
1440
|
+
*,
|
|
1441
|
+
collection: Global___Expr | None = ...,
|
|
1442
|
+
loop_var: builtins.str = ...,
|
|
1443
|
+
action: Global___ActionCall | None = ...,
|
|
1444
|
+
) -> None: ...
|
|
1445
|
+
def HasField(
|
|
1446
|
+
self, field_name: typing.Literal["action", b"action", "collection", b"collection"]
|
|
1447
|
+
) -> builtins.bool: ...
|
|
1448
|
+
def ClearField(
|
|
1449
|
+
self,
|
|
1450
|
+
field_name: typing.Literal[
|
|
1451
|
+
"action", b"action", "collection", b"collection", "loop_var", b"loop_var"
|
|
1452
|
+
],
|
|
1453
|
+
) -> None: ...
|
|
1454
|
+
|
|
1455
|
+
Global___SpreadExpr: typing_extensions.TypeAlias = SpreadExpr
|
|
1456
|
+
|
|
1457
|
+
@typing.final
|
|
1458
|
+
class PolicyBracket(google.protobuf.message.Message):
|
|
1459
|
+
"""-----------------------------------------------------------------------------
|
|
1460
|
+
Policies (for actions)
|
|
1461
|
+
-----------------------------------------------------------------------------
|
|
1462
|
+
|
|
1463
|
+
Policy bracket on an action call
|
|
1464
|
+
"""
|
|
1465
|
+
|
|
1466
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1467
|
+
|
|
1468
|
+
RETRY_FIELD_NUMBER: builtins.int
|
|
1469
|
+
TIMEOUT_FIELD_NUMBER: builtins.int
|
|
1470
|
+
@property
|
|
1471
|
+
def retry(self) -> Global___RetryPolicy: ...
|
|
1472
|
+
@property
|
|
1473
|
+
def timeout(self) -> Global___TimeoutPolicy: ...
|
|
1474
|
+
def __init__(
|
|
1475
|
+
self,
|
|
1476
|
+
*,
|
|
1477
|
+
retry: Global___RetryPolicy | None = ...,
|
|
1478
|
+
timeout: Global___TimeoutPolicy | None = ...,
|
|
1479
|
+
) -> None: ...
|
|
1480
|
+
def HasField(
|
|
1481
|
+
self, field_name: typing.Literal["kind", b"kind", "retry", b"retry", "timeout", b"timeout"]
|
|
1482
|
+
) -> builtins.bool: ...
|
|
1483
|
+
def ClearField(
|
|
1484
|
+
self, field_name: typing.Literal["kind", b"kind", "retry", b"retry", "timeout", b"timeout"]
|
|
1485
|
+
) -> None: ...
|
|
1486
|
+
def WhichOneof(
|
|
1487
|
+
self, oneof_group: typing.Literal["kind", b"kind"]
|
|
1488
|
+
) -> typing.Literal["retry", "timeout"] | None: ...
|
|
1489
|
+
|
|
1490
|
+
Global___PolicyBracket: typing_extensions.TypeAlias = PolicyBracket
|
|
1491
|
+
|
|
1492
|
+
@typing.final
|
|
1493
|
+
class RetryPolicy(google.protobuf.message.Message):
|
|
1494
|
+
"""Retry policy: [ExceptionType -> retry: 3, backoff: 60s]"""
|
|
1495
|
+
|
|
1496
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1497
|
+
|
|
1498
|
+
EXCEPTION_TYPES_FIELD_NUMBER: builtins.int
|
|
1499
|
+
MAX_RETRIES_FIELD_NUMBER: builtins.int
|
|
1500
|
+
BACKOFF_FIELD_NUMBER: builtins.int
|
|
1501
|
+
max_retries: builtins.int
|
|
1502
|
+
@property
|
|
1503
|
+
def exception_types(
|
|
1504
|
+
self,
|
|
1505
|
+
) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
|
1506
|
+
"""Empty = catch all"""
|
|
1507
|
+
|
|
1508
|
+
@property
|
|
1509
|
+
def backoff(self) -> Global___Duration: ...
|
|
1510
|
+
def __init__(
|
|
1511
|
+
self,
|
|
1512
|
+
*,
|
|
1513
|
+
exception_types: collections.abc.Iterable[builtins.str] | None = ...,
|
|
1514
|
+
max_retries: builtins.int = ...,
|
|
1515
|
+
backoff: Global___Duration | None = ...,
|
|
1516
|
+
) -> None: ...
|
|
1517
|
+
def HasField(self, field_name: typing.Literal["backoff", b"backoff"]) -> builtins.bool: ...
|
|
1518
|
+
def ClearField(
|
|
1519
|
+
self,
|
|
1520
|
+
field_name: typing.Literal[
|
|
1521
|
+
"backoff",
|
|
1522
|
+
b"backoff",
|
|
1523
|
+
"exception_types",
|
|
1524
|
+
b"exception_types",
|
|
1525
|
+
"max_retries",
|
|
1526
|
+
b"max_retries",
|
|
1527
|
+
],
|
|
1528
|
+
) -> None: ...
|
|
1529
|
+
|
|
1530
|
+
Global___RetryPolicy: typing_extensions.TypeAlias = RetryPolicy
|
|
1531
|
+
|
|
1532
|
+
@typing.final
|
|
1533
|
+
class TimeoutPolicy(google.protobuf.message.Message):
|
|
1534
|
+
"""Timeout policy: [timeout: 2m]"""
|
|
1535
|
+
|
|
1536
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1537
|
+
|
|
1538
|
+
TIMEOUT_FIELD_NUMBER: builtins.int
|
|
1539
|
+
@property
|
|
1540
|
+
def timeout(self) -> Global___Duration: ...
|
|
1541
|
+
def __init__(
|
|
1542
|
+
self,
|
|
1543
|
+
*,
|
|
1544
|
+
timeout: Global___Duration | None = ...,
|
|
1545
|
+
) -> None: ...
|
|
1546
|
+
def HasField(self, field_name: typing.Literal["timeout", b"timeout"]) -> builtins.bool: ...
|
|
1547
|
+
def ClearField(self, field_name: typing.Literal["timeout", b"timeout"]) -> None: ...
|
|
1548
|
+
|
|
1549
|
+
Global___TimeoutPolicy: typing_extensions.TypeAlias = TimeoutPolicy
|
|
1550
|
+
|
|
1551
|
+
@typing.final
|
|
1552
|
+
class Duration(google.protobuf.message.Message):
|
|
1553
|
+
"""Duration value (e.g., 30s, 2m, 1h)"""
|
|
1554
|
+
|
|
1555
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1556
|
+
|
|
1557
|
+
SECONDS_FIELD_NUMBER: builtins.int
|
|
1558
|
+
seconds: builtins.int
|
|
1559
|
+
def __init__(
|
|
1560
|
+
self,
|
|
1561
|
+
*,
|
|
1562
|
+
seconds: builtins.int = ...,
|
|
1563
|
+
) -> None: ...
|
|
1564
|
+
def ClearField(self, field_name: typing.Literal["seconds", b"seconds"]) -> None: ...
|
|
1565
|
+
|
|
1566
|
+
Global___Duration: typing_extensions.TypeAlias = Duration
|
|
1567
|
+
|
|
1568
|
+
@typing.final
|
|
1569
|
+
class Span(google.protobuf.message.Message):
|
|
1570
|
+
"""-----------------------------------------------------------------------------
|
|
1571
|
+
Source Location
|
|
1572
|
+
-----------------------------------------------------------------------------
|
|
1573
|
+
|
|
1574
|
+
Source span for error reporting
|
|
1575
|
+
"""
|
|
1576
|
+
|
|
1577
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1578
|
+
|
|
1579
|
+
START_LINE_FIELD_NUMBER: builtins.int
|
|
1580
|
+
START_COL_FIELD_NUMBER: builtins.int
|
|
1581
|
+
END_LINE_FIELD_NUMBER: builtins.int
|
|
1582
|
+
END_COL_FIELD_NUMBER: builtins.int
|
|
1583
|
+
start_line: builtins.int
|
|
1584
|
+
start_col: builtins.int
|
|
1585
|
+
end_line: builtins.int
|
|
1586
|
+
end_col: builtins.int
|
|
1587
|
+
def __init__(
|
|
1588
|
+
self,
|
|
1589
|
+
*,
|
|
1590
|
+
start_line: builtins.int = ...,
|
|
1591
|
+
start_col: builtins.int = ...,
|
|
1592
|
+
end_line: builtins.int = ...,
|
|
1593
|
+
end_col: builtins.int = ...,
|
|
1594
|
+
) -> None: ...
|
|
1595
|
+
def ClearField(
|
|
1596
|
+
self,
|
|
1597
|
+
field_name: typing.Literal[
|
|
1598
|
+
"end_col",
|
|
1599
|
+
b"end_col",
|
|
1600
|
+
"end_line",
|
|
1601
|
+
b"end_line",
|
|
1602
|
+
"start_col",
|
|
1603
|
+
b"start_col",
|
|
1604
|
+
"start_line",
|
|
1605
|
+
b"start_line",
|
|
1606
|
+
],
|
|
1607
|
+
) -> None: ...
|
|
1608
|
+
|
|
1609
|
+
Global___Span: typing_extensions.TypeAlias = Span
|