-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathserver_pb2.pyi
More file actions
241 lines (201 loc) · 8.3 KB
/
server_pb2.pyi
File metadata and controls
241 lines (201 loc) · 8.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
"""
import builtins
import collections.abc
from isolate.connections.grpc.definitions import common_pb2
import google.protobuf.descriptor
import google.protobuf.internal.containers
import google.protobuf.message
import google.protobuf.struct_pb2
import sys
if sys.version_info >= (3, 8):
import typing as typing_extensions
else:
import typing_extensions
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
@typing_extensions.final
class BoundFunction(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
ENVIRONMENTS_FIELD_NUMBER: builtins.int
FUNCTION_FIELD_NUMBER: builtins.int
SETUP_FUNC_FIELD_NUMBER: builtins.int
STREAM_LOGS_FIELD_NUMBER: builtins.int
@property
def environments(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___EnvironmentDefinition]: ...
@property
def function(self) -> common_pb2.SerializedObject: ...
@property
def setup_func(self) -> common_pb2.SerializedObject: ...
stream_logs: builtins.bool
def __init__(
self,
*,
environments: collections.abc.Iterable[global___EnvironmentDefinition] | None = ...,
function: common_pb2.SerializedObject | None = ...,
setup_func: common_pb2.SerializedObject | None = ...,
stream_logs: builtins.bool = ...,
) -> None: ...
def HasField(self, field_name: typing_extensions.Literal["_setup_func", b"_setup_func", "function", b"function", "setup_func", b"setup_func"]) -> builtins.bool: ...
def ClearField(self, field_name: typing_extensions.Literal["_setup_func", b"_setup_func", "environments", b"environments", "function", b"function", "setup_func", b"setup_func", "stream_logs", b"stream_logs"]) -> None: ...
def WhichOneof(self, oneof_group: typing_extensions.Literal["_setup_func", b"_setup_func"]) -> typing_extensions.Literal["setup_func"] | None: ...
global___BoundFunction = BoundFunction
@typing_extensions.final
class EnvironmentDefinition(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
KIND_FIELD_NUMBER: builtins.int
CONFIGURATION_FIELD_NUMBER: builtins.int
FORCE_FIELD_NUMBER: builtins.int
kind: builtins.str
"""Kind of the isolate environment."""
@property
def configuration(self) -> google.protobuf.struct_pb2.Struct:
"""A free-form definition of environment properties."""
force: builtins.bool
"""Whether to force-create this environment or not."""
def __init__(
self,
*,
kind: builtins.str = ...,
configuration: google.protobuf.struct_pb2.Struct | None = ...,
force: builtins.bool = ...,
) -> None: ...
def HasField(self, field_name: typing_extensions.Literal["configuration", b"configuration"]) -> builtins.bool: ...
def ClearField(self, field_name: typing_extensions.Literal["configuration", b"configuration", "force", b"force", "kind", b"kind"]) -> None: ...
global___EnvironmentDefinition = EnvironmentDefinition
@typing_extensions.final
class SubmitRequest(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
FUNCTION_FIELD_NUMBER: builtins.int
METADATA_FIELD_NUMBER: builtins.int
@property
def function(self) -> global___BoundFunction:
"""The function to run."""
@property
def metadata(self) -> global___TaskMetadata:
"""Task metadata."""
def __init__(
self,
*,
function: global___BoundFunction | None = ...,
metadata: global___TaskMetadata | None = ...,
) -> None: ...
def HasField(self, field_name: typing_extensions.Literal["function", b"function", "metadata", b"metadata"]) -> builtins.bool: ...
def ClearField(self, field_name: typing_extensions.Literal["function", b"function", "metadata", b"metadata"]) -> None: ...
global___SubmitRequest = SubmitRequest
@typing_extensions.final
class TaskMetadata(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
@typing_extensions.final
class LoggerLabelsEntry(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
KEY_FIELD_NUMBER: builtins.int
VALUE_FIELD_NUMBER: builtins.int
key: builtins.str
value: builtins.str
def __init__(
self,
*,
key: builtins.str = ...,
value: builtins.str = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ...
LOGGER_LABELS_FIELD_NUMBER: builtins.int
@property
def logger_labels(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
"""Labels to attach to the logs."""
def __init__(
self,
*,
logger_labels: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["logger_labels", b"logger_labels"]) -> None: ...
global___TaskMetadata = TaskMetadata
@typing_extensions.final
class SubmitResponse(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
TASK_ID_FIELD_NUMBER: builtins.int
task_id: builtins.str
def __init__(
self,
*,
task_id: builtins.str = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["task_id", b"task_id"]) -> None: ...
global___SubmitResponse = SubmitResponse
@typing_extensions.final
class SetMetadataRequest(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
TASK_ID_FIELD_NUMBER: builtins.int
METADATA_FIELD_NUMBER: builtins.int
task_id: builtins.str
@property
def metadata(self) -> global___TaskMetadata: ...
def __init__(
self,
*,
task_id: builtins.str = ...,
metadata: global___TaskMetadata | None = ...,
) -> None: ...
def HasField(self, field_name: typing_extensions.Literal["metadata", b"metadata"]) -> builtins.bool: ...
def ClearField(self, field_name: typing_extensions.Literal["metadata", b"metadata", "task_id", b"task_id"]) -> None: ...
global___SetMetadataRequest = SetMetadataRequest
@typing_extensions.final
class SetMetadataResponse(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
def __init__(
self,
) -> None: ...
global___SetMetadataResponse = SetMetadataResponse
@typing_extensions.final
class ListRequest(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
def __init__(
self,
) -> None: ...
global___ListRequest = ListRequest
@typing_extensions.final
class TaskInfo(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
TASK_ID_FIELD_NUMBER: builtins.int
task_id: builtins.str
def __init__(
self,
*,
task_id: builtins.str = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["task_id", b"task_id"]) -> None: ...
global___TaskInfo = TaskInfo
@typing_extensions.final
class ListResponse(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
TASKS_FIELD_NUMBER: builtins.int
@property
def tasks(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___TaskInfo]: ...
def __init__(
self,
*,
tasks: collections.abc.Iterable[global___TaskInfo] | None = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["tasks", b"tasks"]) -> None: ...
global___ListResponse = ListResponse
@typing_extensions.final
class CancelRequest(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
TASK_ID_FIELD_NUMBER: builtins.int
task_id: builtins.str
def __init__(
self,
*,
task_id: builtins.str = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["task_id", b"task_id"]) -> None: ...
global___CancelRequest = CancelRequest
@typing_extensions.final
class CancelResponse(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
def __init__(
self,
) -> None: ...
global___CancelResponse = CancelResponse