@flyteorg/flyteidl2 2.0.0-alpha10 → 2.0.0-alpha13

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.
@@ -0,0 +1,722 @@
1
+ // @generated by protoc-gen-es v2.2.5 with parameter "target=ts,import_extension=.ts"
2
+ // @generated from file flyteidl2/plugins/connector.proto (package flyteidl2.plugins, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
6
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
7
+ import type { TaskExecution_Phase, TaskLog } from "../core/execution_pb.ts";
8
+ import { file_flyteidl2_core_execution } from "../core/execution_pb.ts";
9
+ import type { TaskExecutionIdentifier } from "../core/identifier_pb.ts";
10
+ import { file_flyteidl2_core_identifier } from "../core/identifier_pb.ts";
11
+ import type { ExecutionMetricResult } from "../core/metrics_pb.ts";
12
+ import { file_flyteidl2_core_metrics } from "../core/metrics_pb.ts";
13
+ import type { Connection, Identity } from "../core/security_pb.ts";
14
+ import { file_flyteidl2_core_security } from "../core/security_pb.ts";
15
+ import type { TaskTemplate } from "../core/tasks_pb.ts";
16
+ import { file_flyteidl2_core_tasks } from "../core/tasks_pb.ts";
17
+ import type { Inputs, Outputs } from "../task/common_pb.ts";
18
+ import { file_flyteidl2_task_common } from "../task/common_pb.ts";
19
+ import type { Duration, Timestamp } from "@bufbuild/protobuf/wkt";
20
+ import { file_google_protobuf_duration, file_google_protobuf_struct, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
21
+ import type { JsonObject, Message } from "@bufbuild/protobuf";
22
+
23
+ /**
24
+ * Describes the file flyteidl2/plugins/connector.proto.
25
+ */
26
+ export const file_flyteidl2_plugins_connector: GenFile = /*@__PURE__*/
27
+ fileDesc("CiFmbHl0ZWlkbDIvcGx1Z2lucy9jb25uZWN0b3IucHJvdG8SEWZseXRlaWRsMi5wbHVnaW5zIqYFChVUYX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EjYKDXRhc2tfY2F0ZWdvcnkYByABKAsyHy5mbHl0ZWlkbDIucGx1Z2lucy5UYXNrQ2F0ZWdvcnkiUAoWR2V0VGFza01ldHJpY3NSZXNwb25zZRI2CgdyZXN1bHRzGAEgAygLMiUuZmx5dGVpZGwyLmNvcmUuRXhlY3V0aW9uTWV0cmljUmVzdWx0IoEBChJHZXRUYXNrTG9nc1JlcXVlc3QSFQoNcmVzb3VyY2VfbWV0YRgCIAEoDBINCgVsaW5lcxgDIAEoBBINCgV0b2tlbhgEIAEoCRI2Cg10YXNrX2NhdGVnb3J5GAUgASgLMh8uZmx5dGVpZGwyLnBsdWdpbnMuVGFza0NhdGVnb3J5IioKGUdldFRhc2tMb2dzUmVzcG9uc2VIZWFkZXISDQoFdG9rZW4YASABKAkiKgoXR2V0VGFza0xvZ3NSZXNwb25zZUJvZHkSDwoHcmVzdWx0cxgBIAMoCSKZAQoTR2V0VGFza0xvZ3NSZXNwb25zZRI+CgZoZWFkZXIYASABKAsyLC5mbHl0ZWlkbDIucGx1Z2lucy5HZXRUYXNrTG9nc1Jlc3BvbnNlSGVhZGVySAASOgoEYm9keRgCIAEoCzIqLmZseXRlaWRsMi5wbHVnaW5zLkdldFRhc2tMb2dzUmVzcG9uc2VCb2R5SABCBgoEcGFydELFAQoVY29tLmZseXRlaWRsMi5wbHVnaW5zQg5Db25uZWN0b3JQcm90b0gCUAFaNWdpdGh1Yi5jb20vZmx5dGVvcmcvZmx5dGUvdjIvZ2VuL2dvL2ZseXRlaWRsMi9wbHVnaW5zogIDRlBYqgIRRmx5dGVpZGwyLlBsdWdpbnPKAhFGbHl0ZWlkbDJcUGx1Z2luc+ICHUZseXRlaWRsMlxQbHVnaW5zXEdQQk1ldGFkYXRh6gISRmx5dGVpZGwyOjpQbHVnaW5zYgZwcm90bzM", [file_flyteidl2_core_execution, file_flyteidl2_core_identifier, file_flyteidl2_core_metrics, file_flyteidl2_core_security, file_flyteidl2_core_tasks, file_flyteidl2_task_common, file_google_protobuf_duration, file_google_protobuf_struct, file_google_protobuf_timestamp]);
28
+
29
+ /**
30
+ * Represents a subset of runtime task execution metadata that are relevant to external plugins.
31
+ *
32
+ * ID of the task execution
33
+ *
34
+ * @generated from message flyteidl2.plugins.TaskExecutionMetadata
35
+ */
36
+ export type TaskExecutionMetadata = Message<"flyteidl2.plugins.TaskExecutionMetadata"> & {
37
+ /**
38
+ * @generated from field: flyteidl2.core.TaskExecutionIdentifier task_execution_id = 1;
39
+ */
40
+ taskExecutionId?: TaskExecutionIdentifier;
41
+
42
+ /**
43
+ * k8s namespace where the task is executed in
44
+ *
45
+ * @generated from field: string namespace = 2;
46
+ */
47
+ namespace: string;
48
+
49
+ /**
50
+ * Labels attached to the task execution
51
+ *
52
+ * @generated from field: map<string, string> labels = 3;
53
+ */
54
+ labels: { [key: string]: string };
55
+
56
+ /**
57
+ * Annotations attached to the task execution
58
+ *
59
+ * @generated from field: map<string, string> annotations = 4;
60
+ */
61
+ annotations: { [key: string]: string };
62
+
63
+ /**
64
+ * k8s service account associated with the task execution
65
+ *
66
+ * @generated from field: string k8s_service_account = 5;
67
+ */
68
+ k8sServiceAccount: string;
69
+
70
+ /**
71
+ * Environment variables attached to the task execution
72
+ *
73
+ * @generated from field: map<string, string> environment_variables = 6;
74
+ */
75
+ environmentVariables: { [key: string]: string };
76
+
77
+ /**
78
+ * Represents the maximum number of attempts allowed for a task.
79
+ * If a task fails, it can be retried up to this maximum number of attempts.
80
+ *
81
+ * @generated from field: int32 max_attempts = 7;
82
+ */
83
+ maxAttempts: number;
84
+
85
+ /**
86
+ * Indicates whether the task execution can be interrupted.
87
+ * If set to true, the task can be stopped before completion.
88
+ *
89
+ * @generated from field: bool interruptible = 8;
90
+ */
91
+ interruptible: boolean;
92
+
93
+ /**
94
+ * Specifies the threshold for failure count at which the interruptible property
95
+ * will take effect. If the number of consecutive task failures exceeds this threshold,
96
+ * interruptible behavior will be activated.
97
+ *
98
+ * @generated from field: int32 interruptible_failure_threshold = 9;
99
+ */
100
+ interruptibleFailureThreshold: number;
101
+
102
+ /**
103
+ * Identity of user running this task execution
104
+ *
105
+ * @generated from field: flyteidl2.core.Identity identity = 11;
106
+ */
107
+ identity?: Identity;
108
+ };
109
+
110
+ /**
111
+ * Describes the message flyteidl2.plugins.TaskExecutionMetadata.
112
+ * Use `create(TaskExecutionMetadataSchema)` to create a new message.
113
+ */
114
+ export const TaskExecutionMetadataSchema: GenMessage<TaskExecutionMetadata> = /*@__PURE__*/
115
+ messageDesc(file_flyteidl2_plugins_connector, 0);
116
+
117
+ /**
118
+ * Represents a request structure to create task.
119
+ *
120
+ * @generated from message flyteidl2.plugins.CreateTaskRequest
121
+ */
122
+ export type CreateTaskRequest = Message<"flyteidl2.plugins.CreateTaskRequest"> & {
123
+ /**
124
+ * The inputs required to start the execution. All required inputs must be
125
+ * included in this map. If not required and not provided, defaults apply.
126
+ * +optional
127
+ *
128
+ * @generated from field: flyteidl2.task.Inputs inputs = 1;
129
+ */
130
+ inputs?: Inputs;
131
+
132
+ /**
133
+ * Template of the task that encapsulates all the metadata of the task.
134
+ *
135
+ * @generated from field: flyteidl2.core.TaskTemplate template = 2;
136
+ */
137
+ template?: TaskTemplate;
138
+
139
+ /**
140
+ * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
141
+ *
142
+ * @generated from field: string output_prefix = 3;
143
+ */
144
+ outputPrefix: string;
145
+
146
+ /**
147
+ * subset of runtime task execution metadata.
148
+ *
149
+ * @generated from field: flyteidl2.plugins.TaskExecutionMetadata task_execution_metadata = 4;
150
+ */
151
+ taskExecutionMetadata?: TaskExecutionMetadata;
152
+
153
+ /**
154
+ * Connection (secret and config) required by the connector.
155
+ * Connector will use the secret and config in the taskTemplate if it's None.
156
+ * +optional
157
+ *
158
+ * @generated from field: flyteidl2.core.Connection connection = 5;
159
+ */
160
+ connection?: Connection;
161
+ };
162
+
163
+ /**
164
+ * Describes the message flyteidl2.plugins.CreateTaskRequest.
165
+ * Use `create(CreateTaskRequestSchema)` to create a new message.
166
+ */
167
+ export const CreateTaskRequestSchema: GenMessage<CreateTaskRequest> = /*@__PURE__*/
168
+ messageDesc(file_flyteidl2_plugins_connector, 1);
169
+
170
+ /**
171
+ * Represents a create response structure.
172
+ *
173
+ * @generated from message flyteidl2.plugins.CreateTaskResponse
174
+ */
175
+ export type CreateTaskResponse = Message<"flyteidl2.plugins.CreateTaskResponse"> & {
176
+ /**
177
+ * ResourceMeta is created by the connector. It could be a string (jobId) or a dict (more complex metadata).
178
+ *
179
+ * @generated from field: bytes resource_meta = 1;
180
+ */
181
+ resourceMeta: Uint8Array;
182
+ };
183
+
184
+ /**
185
+ * Describes the message flyteidl2.plugins.CreateTaskResponse.
186
+ * Use `create(CreateTaskResponseSchema)` to create a new message.
187
+ */
188
+ export const CreateTaskResponseSchema: GenMessage<CreateTaskResponse> = /*@__PURE__*/
189
+ messageDesc(file_flyteidl2_plugins_connector, 2);
190
+
191
+ /**
192
+ * @generated from message flyteidl2.plugins.CreateRequestHeader
193
+ */
194
+ export type CreateRequestHeader = Message<"flyteidl2.plugins.CreateRequestHeader"> & {
195
+ /**
196
+ * Template of the task that encapsulates all the metadata of the task.
197
+ *
198
+ * @generated from field: flyteidl2.core.TaskTemplate template = 1;
199
+ */
200
+ template?: TaskTemplate;
201
+
202
+ /**
203
+ * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
204
+ *
205
+ * @generated from field: string output_prefix = 2;
206
+ */
207
+ outputPrefix: string;
208
+
209
+ /**
210
+ * subset of runtime task execution metadata.
211
+ *
212
+ * @generated from field: flyteidl2.plugins.TaskExecutionMetadata task_execution_metadata = 3;
213
+ */
214
+ taskExecutionMetadata?: TaskExecutionMetadata;
215
+
216
+ /**
217
+ * MaxDatasetSizeBytes is the maximum size of the dataset that can be generated by the task.
218
+ *
219
+ * @generated from field: int64 max_dataset_size_bytes = 4;
220
+ */
221
+ maxDatasetSizeBytes: bigint;
222
+
223
+ /**
224
+ * Connection (secret and config) required by the connector.
225
+ * Connector will use the secret and config in the taskTemplate if it's None.
226
+ * +optional
227
+ *
228
+ * @generated from field: flyteidl2.core.Connection connection = 5;
229
+ */
230
+ connection?: Connection;
231
+ };
232
+
233
+ /**
234
+ * Describes the message flyteidl2.plugins.CreateRequestHeader.
235
+ * Use `create(CreateRequestHeaderSchema)` to create a new message.
236
+ */
237
+ export const CreateRequestHeaderSchema: GenMessage<CreateRequestHeader> = /*@__PURE__*/
238
+ messageDesc(file_flyteidl2_plugins_connector, 3);
239
+
240
+ /**
241
+ * A message used to fetch a job resource from flyte connector server.
242
+ *
243
+ * @generated from message flyteidl2.plugins.GetTaskRequest
244
+ */
245
+ export type GetTaskRequest = Message<"flyteidl2.plugins.GetTaskRequest"> & {
246
+ /**
247
+ * Metadata about the resource to be pass to the connector.
248
+ *
249
+ * @generated from field: bytes resource_meta = 2;
250
+ */
251
+ resourceMeta: Uint8Array;
252
+
253
+ /**
254
+ * A predefined yet extensible Task type identifier.
255
+ *
256
+ * @generated from field: flyteidl2.plugins.TaskCategory task_category = 3;
257
+ */
258
+ taskCategory?: TaskCategory;
259
+
260
+ /**
261
+ * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
262
+ *
263
+ * @generated from field: string output_prefix = 4;
264
+ */
265
+ outputPrefix: string;
266
+
267
+ /**
268
+ * Connection (secret and config) required by the connector.
269
+ * Connector will use the secret and config in the taskTemplate if it's None.
270
+ * +optional
271
+ *
272
+ * @generated from field: flyteidl2.core.Connection connection = 5;
273
+ */
274
+ connection?: Connection;
275
+ };
276
+
277
+ /**
278
+ * Describes the message flyteidl2.plugins.GetTaskRequest.
279
+ * Use `create(GetTaskRequestSchema)` to create a new message.
280
+ */
281
+ export const GetTaskRequestSchema: GenMessage<GetTaskRequest> = /*@__PURE__*/
282
+ messageDesc(file_flyteidl2_plugins_connector, 4);
283
+
284
+ /**
285
+ * Response to get an individual task resource.
286
+ *
287
+ * @generated from message flyteidl2.plugins.GetTaskResponse
288
+ */
289
+ export type GetTaskResponse = Message<"flyteidl2.plugins.GetTaskResponse"> & {
290
+ /**
291
+ * @generated from field: flyteidl2.plugins.Resource resource = 1;
292
+ */
293
+ resource?: Resource;
294
+ };
295
+
296
+ /**
297
+ * Describes the message flyteidl2.plugins.GetTaskResponse.
298
+ * Use `create(GetTaskResponseSchema)` to create a new message.
299
+ */
300
+ export const GetTaskResponseSchema: GenMessage<GetTaskResponse> = /*@__PURE__*/
301
+ messageDesc(file_flyteidl2_plugins_connector, 5);
302
+
303
+ /**
304
+ * @generated from message flyteidl2.plugins.Resource
305
+ */
306
+ export type Resource = Message<"flyteidl2.plugins.Resource"> & {
307
+ /**
308
+ * The outputs of the execution. It's typically used by sql task. connector service will create a
309
+ * Structured dataset pointing to the query result table.
310
+ * +optional
311
+ *
312
+ * @generated from field: flyteidl2.task.Outputs outputs = 2;
313
+ */
314
+ outputs?: Outputs;
315
+
316
+ /**
317
+ * A descriptive message for the current state. e.g. waiting for cluster.
318
+ *
319
+ * @generated from field: string message = 3;
320
+ */
321
+ message: string;
322
+
323
+ /**
324
+ * log information for the task execution.
325
+ *
326
+ * @generated from field: repeated flyteidl2.core.TaskLog log_links = 4;
327
+ */
328
+ logLinks: TaskLog[];
329
+
330
+ /**
331
+ * The phase of the execution is used to determine the phase of the plugin's execution.
332
+ *
333
+ * @generated from field: flyteidl2.core.TaskExecution.Phase phase = 5;
334
+ */
335
+ phase: TaskExecution_Phase;
336
+
337
+ /**
338
+ * Custom data specific to the connector.
339
+ *
340
+ * @generated from field: google.protobuf.Struct custom_info = 6;
341
+ */
342
+ customInfo?: JsonObject;
343
+ };
344
+
345
+ /**
346
+ * Describes the message flyteidl2.plugins.Resource.
347
+ * Use `create(ResourceSchema)` to create a new message.
348
+ */
349
+ export const ResourceSchema: GenMessage<Resource> = /*@__PURE__*/
350
+ messageDesc(file_flyteidl2_plugins_connector, 6);
351
+
352
+ /**
353
+ * A message used to delete a task.
354
+ *
355
+ * @generated from message flyteidl2.plugins.DeleteTaskRequest
356
+ */
357
+ export type DeleteTaskRequest = Message<"flyteidl2.plugins.DeleteTaskRequest"> & {
358
+ /**
359
+ * Metadata about the resource to be pass to the connector.
360
+ *
361
+ * @generated from field: bytes resource_meta = 2;
362
+ */
363
+ resourceMeta: Uint8Array;
364
+
365
+ /**
366
+ * A predefined yet extensible Task type identifier.
367
+ *
368
+ * @generated from field: flyteidl2.plugins.TaskCategory task_category = 3;
369
+ */
370
+ taskCategory?: TaskCategory;
371
+
372
+ /**
373
+ * Connection (secret and config) required by the connector.
374
+ * Connector will use the secret and config in the taskTemplate if it's None.
375
+ * +optional
376
+ *
377
+ * @generated from field: flyteidl2.core.Connection connection = 5;
378
+ */
379
+ connection?: Connection;
380
+ };
381
+
382
+ /**
383
+ * Describes the message flyteidl2.plugins.DeleteTaskRequest.
384
+ * Use `create(DeleteTaskRequestSchema)` to create a new message.
385
+ */
386
+ export const DeleteTaskRequestSchema: GenMessage<DeleteTaskRequest> = /*@__PURE__*/
387
+ messageDesc(file_flyteidl2_plugins_connector, 7);
388
+
389
+ /**
390
+ * Response to delete a task.
391
+ *
392
+ * @generated from message flyteidl2.plugins.DeleteTaskResponse
393
+ */
394
+ export type DeleteTaskResponse = Message<"flyteidl2.plugins.DeleteTaskResponse"> & {
395
+ };
396
+
397
+ /**
398
+ * Describes the message flyteidl2.plugins.DeleteTaskResponse.
399
+ * Use `create(DeleteTaskResponseSchema)` to create a new message.
400
+ */
401
+ export const DeleteTaskResponseSchema: GenMessage<DeleteTaskResponse> = /*@__PURE__*/
402
+ messageDesc(file_flyteidl2_plugins_connector, 8);
403
+
404
+ /**
405
+ * A message containing the connector metadata.
406
+ *
407
+ * @generated from message flyteidl2.plugins.Connector
408
+ */
409
+ export type Connector = Message<"flyteidl2.plugins.Connector"> & {
410
+ /**
411
+ * Name is the developer-assigned name of the connector.
412
+ *
413
+ * @generated from field: string name = 1;
414
+ */
415
+ name: string;
416
+
417
+ /**
418
+ * Supported_task_categories are the categories of the tasks that the connector can handle.
419
+ *
420
+ * @generated from field: repeated flyteidl2.plugins.TaskCategory supported_task_categories = 4;
421
+ */
422
+ supportedTaskCategories: TaskCategory[];
423
+ };
424
+
425
+ /**
426
+ * Describes the message flyteidl2.plugins.Connector.
427
+ * Use `create(ConnectorSchema)` to create a new message.
428
+ */
429
+ export const ConnectorSchema: GenMessage<Connector> = /*@__PURE__*/
430
+ messageDesc(file_flyteidl2_plugins_connector, 9);
431
+
432
+ /**
433
+ * @generated from message flyteidl2.plugins.TaskCategory
434
+ */
435
+ export type TaskCategory = Message<"flyteidl2.plugins.TaskCategory"> & {
436
+ /**
437
+ * The name of the task type.
438
+ *
439
+ * @generated from field: string name = 1;
440
+ */
441
+ name: string;
442
+
443
+ /**
444
+ * The version of the task type.
445
+ *
446
+ * @generated from field: int32 version = 2;
447
+ */
448
+ version: number;
449
+ };
450
+
451
+ /**
452
+ * Describes the message flyteidl2.plugins.TaskCategory.
453
+ * Use `create(TaskCategorySchema)` to create a new message.
454
+ */
455
+ export const TaskCategorySchema: GenMessage<TaskCategory> = /*@__PURE__*/
456
+ messageDesc(file_flyteidl2_plugins_connector, 10);
457
+
458
+ /**
459
+ * A request to get an connector.
460
+ *
461
+ * @generated from message flyteidl2.plugins.GetConnectorRequest
462
+ */
463
+ export type GetConnectorRequest = Message<"flyteidl2.plugins.GetConnectorRequest"> & {
464
+ /**
465
+ * The name of the connector.
466
+ *
467
+ * @generated from field: string name = 1;
468
+ */
469
+ name: string;
470
+ };
471
+
472
+ /**
473
+ * Describes the message flyteidl2.plugins.GetConnectorRequest.
474
+ * Use `create(GetConnectorRequestSchema)` to create a new message.
475
+ */
476
+ export const GetConnectorRequestSchema: GenMessage<GetConnectorRequest> = /*@__PURE__*/
477
+ messageDesc(file_flyteidl2_plugins_connector, 11);
478
+
479
+ /**
480
+ * A response containing an connector.
481
+ *
482
+ * @generated from message flyteidl2.plugins.GetConnectorResponse
483
+ */
484
+ export type GetConnectorResponse = Message<"flyteidl2.plugins.GetConnectorResponse"> & {
485
+ /**
486
+ * @generated from field: flyteidl2.plugins.Connector connector = 1;
487
+ */
488
+ connector?: Connector;
489
+ };
490
+
491
+ /**
492
+ * Describes the message flyteidl2.plugins.GetConnectorResponse.
493
+ * Use `create(GetConnectorResponseSchema)` to create a new message.
494
+ */
495
+ export const GetConnectorResponseSchema: GenMessage<GetConnectorResponse> = /*@__PURE__*/
496
+ messageDesc(file_flyteidl2_plugins_connector, 12);
497
+
498
+ /**
499
+ * A request to list all connectors.
500
+ *
501
+ * @generated from message flyteidl2.plugins.ListConnectorsRequest
502
+ */
503
+ export type ListConnectorsRequest = Message<"flyteidl2.plugins.ListConnectorsRequest"> & {
504
+ };
505
+
506
+ /**
507
+ * Describes the message flyteidl2.plugins.ListConnectorsRequest.
508
+ * Use `create(ListConnectorsRequestSchema)` to create a new message.
509
+ */
510
+ export const ListConnectorsRequestSchema: GenMessage<ListConnectorsRequest> = /*@__PURE__*/
511
+ messageDesc(file_flyteidl2_plugins_connector, 13);
512
+
513
+ /**
514
+ * A response containing a list of connectors.
515
+ *
516
+ * @generated from message flyteidl2.plugins.ListConnectorsResponse
517
+ */
518
+ export type ListConnectorsResponse = Message<"flyteidl2.plugins.ListConnectorsResponse"> & {
519
+ /**
520
+ * @generated from field: repeated flyteidl2.plugins.Connector connectors = 1;
521
+ */
522
+ connectors: Connector[];
523
+ };
524
+
525
+ /**
526
+ * Describes the message flyteidl2.plugins.ListConnectorsResponse.
527
+ * Use `create(ListConnectorsResponseSchema)` to create a new message.
528
+ */
529
+ export const ListConnectorsResponseSchema: GenMessage<ListConnectorsResponse> = /*@__PURE__*/
530
+ messageDesc(file_flyteidl2_plugins_connector, 14);
531
+
532
+ /**
533
+ * A request to get the metrics from a task execution.
534
+ *
535
+ * @generated from message flyteidl2.plugins.GetTaskMetricsRequest
536
+ */
537
+ export type GetTaskMetricsRequest = Message<"flyteidl2.plugins.GetTaskMetricsRequest"> & {
538
+ /**
539
+ * Metadata is created by the connector. It could be a string (jobId) or a dict (more complex metadata).
540
+ *
541
+ * @generated from field: bytes resource_meta = 2;
542
+ */
543
+ resourceMeta: Uint8Array;
544
+
545
+ /**
546
+ * The metrics to query. If empty, will return a default set of metrics.
547
+ * e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG
548
+ *
549
+ * @generated from field: repeated string queries = 3;
550
+ */
551
+ queries: string[];
552
+
553
+ /**
554
+ * Start timestamp, inclusive.
555
+ *
556
+ * @generated from field: google.protobuf.Timestamp start_time = 4;
557
+ */
558
+ startTime?: Timestamp;
559
+
560
+ /**
561
+ * End timestamp, inclusive..
562
+ *
563
+ * @generated from field: google.protobuf.Timestamp end_time = 5;
564
+ */
565
+ endTime?: Timestamp;
566
+
567
+ /**
568
+ * Query resolution step width in duration format or float number of seconds.
569
+ *
570
+ * @generated from field: google.protobuf.Duration step = 6;
571
+ */
572
+ step?: Duration;
573
+
574
+ /**
575
+ * A predefined yet extensible Task type identifier.
576
+ *
577
+ * @generated from field: flyteidl2.plugins.TaskCategory task_category = 7;
578
+ */
579
+ taskCategory?: TaskCategory;
580
+ };
581
+
582
+ /**
583
+ * Describes the message flyteidl2.plugins.GetTaskMetricsRequest.
584
+ * Use `create(GetTaskMetricsRequestSchema)` to create a new message.
585
+ */
586
+ export const GetTaskMetricsRequestSchema: GenMessage<GetTaskMetricsRequest> = /*@__PURE__*/
587
+ messageDesc(file_flyteidl2_plugins_connector, 15);
588
+
589
+ /**
590
+ * A response containing a list of metrics for a task execution.
591
+ *
592
+ * @generated from message flyteidl2.plugins.GetTaskMetricsResponse
593
+ */
594
+ export type GetTaskMetricsResponse = Message<"flyteidl2.plugins.GetTaskMetricsResponse"> & {
595
+ /**
596
+ * The execution metric results.
597
+ *
598
+ * @generated from field: repeated flyteidl2.core.ExecutionMetricResult results = 1;
599
+ */
600
+ results: ExecutionMetricResult[];
601
+ };
602
+
603
+ /**
604
+ * Describes the message flyteidl2.plugins.GetTaskMetricsResponse.
605
+ * Use `create(GetTaskMetricsResponseSchema)` to create a new message.
606
+ */
607
+ export const GetTaskMetricsResponseSchema: GenMessage<GetTaskMetricsResponse> = /*@__PURE__*/
608
+ messageDesc(file_flyteidl2_plugins_connector, 16);
609
+
610
+ /**
611
+ * A request to get the log from a task execution.
612
+ *
613
+ * @generated from message flyteidl2.plugins.GetTaskLogsRequest
614
+ */
615
+ export type GetTaskLogsRequest = Message<"flyteidl2.plugins.GetTaskLogsRequest"> & {
616
+ /**
617
+ * Metadata is created by the connector. It could be a string (jobId) or a dict (more complex metadata).
618
+ *
619
+ * @generated from field: bytes resource_meta = 2;
620
+ */
621
+ resourceMeta: Uint8Array;
622
+
623
+ /**
624
+ * Number of lines to return.
625
+ *
626
+ * @generated from field: uint64 lines = 3;
627
+ */
628
+ lines: bigint;
629
+
630
+ /**
631
+ * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
632
+ * in a query. If there are no more results, this value will be empty.
633
+ *
634
+ * @generated from field: string token = 4;
635
+ */
636
+ token: string;
637
+
638
+ /**
639
+ * A predefined yet extensible Task type identifier.
640
+ *
641
+ * @generated from field: flyteidl2.plugins.TaskCategory task_category = 5;
642
+ */
643
+ taskCategory?: TaskCategory;
644
+ };
645
+
646
+ /**
647
+ * Describes the message flyteidl2.plugins.GetTaskLogsRequest.
648
+ * Use `create(GetTaskLogsRequestSchema)` to create a new message.
649
+ */
650
+ export const GetTaskLogsRequestSchema: GenMessage<GetTaskLogsRequest> = /*@__PURE__*/
651
+ messageDesc(file_flyteidl2_plugins_connector, 17);
652
+
653
+ /**
654
+ * @generated from message flyteidl2.plugins.GetTaskLogsResponseHeader
655
+ */
656
+ export type GetTaskLogsResponseHeader = Message<"flyteidl2.plugins.GetTaskLogsResponseHeader"> & {
657
+ /**
658
+ * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
659
+ * in a query. If there are no more results, this value will be empty.
660
+ *
661
+ * @generated from field: string token = 1;
662
+ */
663
+ token: string;
664
+ };
665
+
666
+ /**
667
+ * Describes the message flyteidl2.plugins.GetTaskLogsResponseHeader.
668
+ * Use `create(GetTaskLogsResponseHeaderSchema)` to create a new message.
669
+ */
670
+ export const GetTaskLogsResponseHeaderSchema: GenMessage<GetTaskLogsResponseHeader> = /*@__PURE__*/
671
+ messageDesc(file_flyteidl2_plugins_connector, 18);
672
+
673
+ /**
674
+ * @generated from message flyteidl2.plugins.GetTaskLogsResponseBody
675
+ */
676
+ export type GetTaskLogsResponseBody = Message<"flyteidl2.plugins.GetTaskLogsResponseBody"> & {
677
+ /**
678
+ * The execution log results.
679
+ *
680
+ * @generated from field: repeated string results = 1;
681
+ */
682
+ results: string[];
683
+ };
684
+
685
+ /**
686
+ * Describes the message flyteidl2.plugins.GetTaskLogsResponseBody.
687
+ * Use `create(GetTaskLogsResponseBodySchema)` to create a new message.
688
+ */
689
+ export const GetTaskLogsResponseBodySchema: GenMessage<GetTaskLogsResponseBody> = /*@__PURE__*/
690
+ messageDesc(file_flyteidl2_plugins_connector, 19);
691
+
692
+ /**
693
+ * A response containing the logs for a task execution.
694
+ *
695
+ * @generated from message flyteidl2.plugins.GetTaskLogsResponse
696
+ */
697
+ export type GetTaskLogsResponse = Message<"flyteidl2.plugins.GetTaskLogsResponse"> & {
698
+ /**
699
+ * @generated from oneof flyteidl2.plugins.GetTaskLogsResponse.part
700
+ */
701
+ part: {
702
+ /**
703
+ * @generated from field: flyteidl2.plugins.GetTaskLogsResponseHeader header = 1;
704
+ */
705
+ value: GetTaskLogsResponseHeader;
706
+ case: "header";
707
+ } | {
708
+ /**
709
+ * @generated from field: flyteidl2.plugins.GetTaskLogsResponseBody body = 2;
710
+ */
711
+ value: GetTaskLogsResponseBody;
712
+ case: "body";
713
+ } | { case: undefined; value?: undefined };
714
+ };
715
+
716
+ /**
717
+ * Describes the message flyteidl2.plugins.GetTaskLogsResponse.
718
+ * Use `create(GetTaskLogsResponseSchema)` to create a new message.
719
+ */
720
+ export const GetTaskLogsResponseSchema: GenMessage<GetTaskLogsResponse> = /*@__PURE__*/
721
+ messageDesc(file_flyteidl2_plugins_connector, 20);
722
+